Given coordinates of two points on a plane, determine if they lie in the same quadrant (all coordinates are non-zero).
Four numbers are entered: coordinates of the first point (x1, y1) and the second point (x2, y2).
Output "YES" if the points are in the same quadrant, otherwise output "NO".
Input #1
3 3 5 1
Output #1
YES
Sign in to submit your solution and save your progress.