#arc163e. [arc163_e]Chmin XOR Game

[arc163_e]Chmin XOR Game

Problem Statement

Alice and Bob are playing a game using a length-NN sequence of non-negative integers A=(A1,A2,dots,AN)A=(A_1,A_2,\\dots,A_N).

Starting with Alice, they take turns performing the following operation. The player who cannot make a move first loses.

  • Choose a non-negative integer XX such that there is an integer ii satisfying Ai>AioplusXA_i > A_i \\oplus X.
  • For each 1leileN1 \\le i \\le N, replace AiA_i with min(Ai,AioplusX)\\min(A_i,A_i \\oplus X).

Determine who wins when both players play optimally.

Here, oplus\\oplus represents the bitwise XOR.

You are given TT test cases. Find the answer for each of them.

Constraints

  • 1leTle1001 \\le T \\le 100
  • 1leNle1001 \\le N \\le 100
  • 0leAile1090 \\le A_i \\le 10^9

Input

The input is given from Standard Input in the following format:

TT mathrmcase1\\mathrm{case}_1 mathrmcase2\\mathrm{case}_2 vdots\\vdots mathrmcaseT\\mathrm{case}_T

Here, mathrmcasei\\mathrm{case}_i is the ii-th test case. Each test case is given in the following format:

NN A1A_1 A2A_2 dots\\dots ANA_N

Output

Print TT lines.

The ii-th line (1leileT)(1 \\le i \\le T) should contain Alice if Alice wins, and Bob if Bob wins in the ii-th test case.


Sample Input 1

5
2
3 1
5
1 1 1 1 1
4
0 0 0 0
4
8 1 6 4
5
3 8 7 12 15

Sample Output 1

Bob
Alice
Bob
Bob
Alice

In the first test case, one possible game progression could be as follows.

  • Alice chooses X=3X=3. This choice is valid because 3>3oplus3(=0)3 > 3 \\oplus 3(=0) for i=1i=1.
  • A=(3,1)A=(3,1) becomes A=(0,1)A=(0,1).
  • Bob chooses X=1X=1. This choice is valid because 1>1oplus1(=0)1 > 1 \\oplus 1(=0) for i=2i=2.
  • A=(0,1)A=(0,1) becomes A=(0,0)A=(0,0).
  • Since Alice cannot choose any XX, the game ends.

In this case, Bob wins.

In the second test case, one possible game progression could be as follows.

  • Alice chooses X=1X=1. This choice is valid because 1>1oplus1(=0)1 > 1 \\oplus 1(=0) for i=1i=1.
  • A=(1,1,1,1,1)A=(1,1,1,1,1) becomes A=(0,0,0,0,0)A=(0,0,0,0,0).
  • Since Bob cannot choose any XX, the game ends.

In this case, Alice wins.