시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB163387383755.689%

문제

Given the coordinates (x,y) of some points in 2-dimensional plane, find out which quadrant(Q1-Q4) the points are located. If a point is located on X-axis or Y-axis, print out AXIS instead.

입력

Each line contains a pair of real numbers which is the coordinate of a point. Input is terminated by 0 0.

출력

Print out in each line Q1, Q2, Q3, Q4 or AXIS for each point.

예제 입력 1

1 2
-1 -0.12
4 0
-10.4 200
0 0

예제 출력 1

Q1
Q3
AXIS
Q2
AXIS