A Hyper Knight is like a chess knight except it has some special moves that a regular knight cannot do. Alice and Bob are playing this game (you may wonder why they always play these games!). As always, they both alternate turns, play optimally and Alice starts first. For this game, there are 6 valid moves for a hyper knight, and they are shown in the following figure (circle shows the knight).
They are playing the game in an infinite chessboard where the upper left cell is (0, 0), the cell right to (0, 0) is (0, 1) and the cell below (0, 0) is (1, 0). There are some hyper knights in the board initially and in each turn a player selects a knight and gives a valid knight move as shown in the picture. The player who cannot make a valid move loses. Multiple knights can go to the same cell, but exactly one knight should be moved in each turn.
You are given the initial knight positions in the board, you have to find the winner of the game.
Input
Input starts with an integer T (≤ 200), denoting the number of test cases.Each case starts with a line containing an integer n (1 ≤ n ≤ 1000) where n denotes the number of hyper knights. Each of the next n lines contains two integers x y (0 ≤ x, y < 500) denoting the position of a knight.
Output
For each case, print the case number and the name of the winning player.
Sample
Sample Input | Sample Output |
---|---|
2 1 1 0 2 2 5 3 5 | Case 1: Bob Case 2: Alice |