CF2123A.Blackboard Game

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Blackboard Game

Initially, the integers from 00 to n1n-1 are written on a blackboard.

In one round,

  • Alice chooses an integer aa on the blackboard and erases it;
  • then Bob chooses an integer bb on the blackboard such that a+b3(mod4)a+b \equiv 3 \pmod 4^{\text{∗}} and erases it.

Rounds take place in succession until a player is unable to make a move — the first player who is unable to make a move loses. Determine who wins with optimal play.

^{\text{∗}}We define that xy(modm)x\equiv y\pmod m whenever xyx-y is an integer multiple of mm.

Input

The first line contains an integer tt (1t1001 \leq t \leq 100)  — the number of test cases.

The only line of each test case contains an integer nn (1n1001\leq n \leq 100) — the number of integers written on the blackboard.

Output

For each test case, output on a single line "Alice" if Alice wins with optimal play, and "Bob" if Bob wins with optimal play.

You can output the answer in any case (upper or lower). For example, the strings "aLiCe", "alice", "ALICE", and "alICE" will be recognized as "Alice".

Note

In the first sample, suppose Alice chooses 00, then Bob cannot choose any number so Alice wins immediately.

In the second sample, suppose Alice chooses 00, then Bob can choose 33. Then suppose Alice chooses 22, then Bob can choose 11. Then Alice has no numbers remaining, so Bob wins.

Samples

5
2
4
5
7
100
Alice
Bob
Alice
Alice
Bob

在线编程 IDE

建议全屏模式获得最佳体验