Start

2020-02-03 04:15 AKST

Kattis Set 04

End

2020-02-10 00:30 AKST
The end is near!
Contest is over.
Not yet started.
Contest is starting in -298 days 12:10:37

Time elapsed

164:15:00

Time remaining

0:00:00

Problem A
Fooling Around

Alice and Bob take turns playing a game, with Alice going first. They begin with a pile of $N$ stones, each turn removing one less than a prime number of stones. The person who removes the last stone wins. Given $N$, determine who wins the the game, assuming Alice and Bob both play optimally.

Input

The first line of input consists of a integer $Q$, the number of testcases, with $1 \leq Q \leq 100$. The next $Q$ lines each contains a single integer $N$, representing the number of stones in the pile, where $1 \leq N \leq 10^9$.

Output

For each test case, output the winner “Alice” or “Bob”. Each testcase’s output should be printed on their own line.

Sample Input 1 Sample Output 1
6
1
2
3
5
8
13
Alice
Alice
Bob
Alice
Bob
Alice