Problem D
Quadrant Selection
A common problem in mathematics is to determine which
quadrant a given point lies in. There are four quadrants,
numbered from
![\includegraphics[width=0.5\textwidth ]{quadrant.png}](/problems/quadrant/file/statement/en/img-0001.png)
For example, the point
Your job is to take a point and determine the quadrant it is
in. You can assume that neither of the two coordinates will be
Input
The first line of input contains the integer
Output
Output the quadrant number (
Sample Input 1 | Sample Output 1 |
---|---|
10 6 |
1 |
Sample Input 2 | Sample Output 2 |
---|---|
9 -13 |
4 |