The input contains several test cases. The first line of a test case contains one integer K indicating the number of queries that will be made (0 < K ≤ 10^3). The second line of a test case contains two integers N and M representing the coordinates of the division point (−10^4 < N, M < 10^4). Each of the K following lines contains two integers X and Y representing the coordinates of a residence (−10^4 ≤ X, Y ≤ 10^4).
The end of input is indicated by a line containing only the number zero.
For each test case in the input your program must print one line containing: