Alice and Bob are playing a strange game. The rules of the game are:
- Initially there are n piles.
- A pile is formed by some cells.
- Alice starts the game and they alternate turns.
- In each turn, a player can pick any pile and divide it into two unequal piles.
- If a player cannot do so, he/she loses the game.
Now you are given the number of cells in each of the piles, you have to find the winner of the game if both of them play optimally.
Input
Input starts with an integer T (≤ 1000), denoting the number of test cases.
Each case starts with a line containing an integer n (1 ≤ n ≤ 100). The next line contains n integers, where the ith integer denotes the number of cells in the ith pile. You can assume that the number of cells in each pile is between 1 and 10000.
Output
For each case, print the case number and Alice
or Bob
depending on the winner of the game.
Sample
Sample Input | Sample Output |
---|---|
3 1 4 3 1 2 3 1 7 | Case 1: Bob Case 2: Alice Case 3: Bob |
Notes
In case 1, Alice has only 1 move, she divides the pile with 4 cells into two unequal piles, where one pile has 1 cell and the other pile has 3 cells. Now it's Bob's turn. Bob divides the pile with 3 cells into two piles, where one pile has 1 cell and another pile has 2 cells. So, now there are three piles having cells 1, 1, 2. And Alice loses, since she doesn't have any moves now.