Area Anarchy

Author: Nazmul Alam

You are given the width and breadth of a rectangular room and width and height of a rectangular sized tile.

You need to determine if the room can be covered in tiles without breaking any tile.

Input Format

The first line contains two integers representing the dimensions of the room.

The second line contains two integers that represents the dimensions of the tile.

All integers are signed 64 bit integers.

Output Format

Print on a single line if the room can be fully covered in one or more tiles without breaking any tile.

Samples

Input
2 3 1 1
Output
YES

Explanation:

The area of the room is 2 X 3 = 6 square unit, the area of the tile is 1 X 1 = 1 square unit. So the room can be fully covered with 6 tiles without breaking any tile.

Input
2 3 2 2
Output
NO
Limits
Language Time Memory
GNU C 11 1s 512MB
GNU C++ 14 1s 512MB
GNU C++ 11 1s 512MB
PHP 7 1s 1024MB
Java (OpenJDK 8) 1s 4096MB
Statistics
Login To Submit