Knight Game
시간 제한2초메모리 제한1024 MB
H x W로 매우 큰 체스판의 (x,y)에서 나이트가 시작해, 갈 수 있는 방문하지 않은 칸으로 번갈아 이동하며 이동할 수 없는 쪽이 지는 게임의 승자를 판정한다.
문제
The rule of this game is given as follows.
- There is a knight and a chessboard with rows and columns. The square at the -th row from the top and the -th column from the left is called square . Initially, the knight is placed on square .
- Alice and Bob alternately take the following action, starting with Alice.
- Move the knight onto one of the unvisited squares according to the knight's movement.
- Knights can move from to if and only if is .
- The player who cannot move the knight is the loser.
When both players have done their best, determine whether Alice or Bob will win. Answer for test cases.
The unvisited square is defined as follows.
- A square on the board that the knight has never visited since the beginning of the game.
입력
represents the -th test case.
Each test case is given in the following format.
출력
Output lines. On the line , answer the winner of the -th test case, Alice or Bob.
제한
- All inputs consist of integers.