#c22803. 取石子游戏2

取石子游戏2

Stone Taking Game 2

Problem Description

There are nn piles of stones, the ii-th pile containing aia_i stones. Alice and Bob take turns removing stones, with Alice moving first. In each turn, a player chooses one pile and removes some positive number of stones from it (they may take the whole pile, but must take at least one stone). The player who takes the last stone wins. Determine the winner.

Input Format

The first line contains an integer TT (1≤T≤1001 \le T \le 100), the number of test cases.

For each test case:

  • The first line contains an integer nn (1≤n≤1001 \le n \le 100), the number of piles.
  • The next line contains nn integers a1,a2,…,ana_1, a_2, \dots, a_n (1≤ai≤1091 \le a_i \le 10^9), the sizes of the piles.

Output Format

Output TT lines, one per test case, each containing Alice or Bob indicating the winner.

Sample Input

3
3
1 2 3
2
1 2
2
5 5

Sample Output

Bob
Alice
Bob