#SDNU1251. G.请回答Alice和Bob

G.请回答Alice和Bob

Description

Alice and Bob are playing the following modified version of Nim game:

1.There are n piles of stones denoted as p0,p1.....pn1p_0,p_1.....p_{n-1}

2.nn is a prime number;

Alice always plays first, and Bob and he move in alternating turns. During each turn, the current player must perform either of the following two kinds of moves:

1.Choose one pile and remove k(k>0)k(k >0) stones from it;

2.Remove kk stones from all piles, where 1k1≤k≤the size of the smallest pile. This move becomes unavailable if any pile is empty.

· Each player moves optimally, meaning they will not make a move that causes them to lose if there are still any better or winning moves.

Giving the initial situation of each game, you are required to figure out who will be the winner

Format

Input

The first contains an integer, gg, denoting the number of games. The 2×g2×g subsequent lines describe each game over two lines:

  1. The first line contains a prime integer, nn, denoting the number of piles.
  2. The second line contains nn space-separated integers describing the respective values of p0,p1,p2.....pn1p_0, p_1, p_2.....p_{n-1}

· 1g151≤g≤15

· 2n302≤n≤30, where nn is a prime.

· 1pi1000001≤p_i≤100000 where 0in10≤i≤n−1

Output

For each game, print the name of the winner on a new line (i.e., either "Alice""Alice" or "Bob""Bob")

Samples

2
3
2 3 2
2
2 1
Alice
Bob