A common problem in mathematics is to determine which quadrant a given point lies in. There are four quadrants, numbered from
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
一個數學上常見的問題是給你一個座標點,問你這個點落在第幾象限上。
象限被編號為
(見上圖)
例如座標為
而點
你的任務是對給予的點座標,計算出它落在第幾象限上。
題目保證
The first line of input contains the integer
輸入第一行包含一整數
第二行包含一整數
Output the quadrant number
對於點
10
6
1
9
-13
4
翻譯
, Kattis