Problem 800
Quadrant of a Point
Easy · 10 pts · Math, Basics, Geometry
Problem
Given a point (X, Y), say where it lies. The quadrants are numbered counter-clockwise: 1 has X > 0 and Y > 0, 2 has X < 0 and Y > 0, 3 has both negative, and 4 has X > 0 and Y < 0. A point with one zero coordinate lies on an axis, and (0, 0) is the origin. Print one of Quadrant 1 to Quadrant 4, X-axis, Y-axis or Origin.
Input
A single line with two integers X and Y.
Output
Print Quadrant 1, Quadrant 2, Quadrant 3, Quadrant 4, X-axis, Y-axis or Origin.
Constraints
-10^9 <= X, Y <= 10^9
Example input
-2 5
Example output
Quadrant 2
Explanation
The point (-2, 5) has a negative X and a positive Y, so it lies in Quadrant 2.