#Lutece0133. Game

Game

Migrated from Lutece 133 Game

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Bob and Alice are playing a new game. There are nn boxes which have been numbered from 11 to nn. Each box is either empty or contains several cards. Bob and Alice move the cards in turn. In each turn the corresponding player should choose a non-empty box AA and choose another box BB that B<AB<A and A+B(mod2)=1A+B\pmod{2}=1 and A+B(mod3)=0A+B\pmod{3}=0. Then, take an arbitrary number (but not zero) of cards from box AA to box BB. The last one who can do a legal move wins. Alice is the first player. Please predict who will win the game.

Input

The first line contains an integer TT (T100T\leq 100) indicating the number of test cases. The first line of each test case contains an integer nn (1n100001\leq n\leq 10000). The second line has nn integers which will not be bigger than 100100. The ithi_{th} integer indicates the number of cards in the ithi_{th} box.

Output

For each test case, print the case number and the winner's name in a single line. Follow the format of the sample output.

Samples

2 
2 
1 2 
7 
1 3 3 2 2 1 2
Case 1: Alice 
Case 2: Bob

Resources

The 5th Guangting Cup Central China Invitatio