A. Blackboard Game
Initially, the integers from
In one round,
- Alice chooses an integer
a on the blackboard and erases it; - then Bob chooses an integer
b on the blackboard such thata+b≡3(mod4) ∗ 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.
The first line contains an integer
The only line of each test case contains an integer
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".
52457100
Alice Bob Alice Alice Bob
In the first sample, suppose Alice chooses
In the second sample, suppose Alice chooses