Олимпиадный тренинг

Задача 38650. Coordinate quarters


Given the coordinates of two points on the plane, it is required to determine whether they lie in the same coordinate quarter or not (all coordinates are nonzero).

Input
4 numbers are entered: the coordinates of the first point (x1, y1) and the coordinates of the second point (x2, y2).

Imprint
The program should print the word YES if the points are in the same coordinate quadrant, otherwise print the word NO.
Examples
# Input Output
1 3
3
5
1
YES