Alice and Bob are playing the following game: There are stones in a pile, and a positive integer . They take turns with Alice going first. In one turn, the player can take at least one and at most stones from the pile. The game ends when there are no more stones left.
Task
Alice wins, if the total number of turns until this point is divisible by , Bob wins otherwise. Given and , determine who has a winning strategy.
Input data
The first line of the input file contains a single integer , the number of test cases. test cases follow. Each test case consists of a line containing integers , , the number of stones in the pile and the maximum number of stones that can be taken in one turn, respectively.
Output data
The output file must contain lines corresponding to the test cases, each consisting of the string Alice, if Alice has a winning strategy, or Bob otherwise.
Constraints and clarifications
- ;
- ;
- Let be the sum of the -s over the test cases.
| # | Score | Constraints |
|---|---|---|
| 1 | 0 | Examples |
| 2 | 15 | |
| 3 | 25 | |
| 4 | 40 | |
| 5 | 20 | No additional restrictions |
Example 1
stdin
3
3 2
4 3
47 7
stdout
Alice
Bob
Bob
Explanation
In the first example Alice can take two stones, forcing Bob to take the last one. The total number of turns is two, which is divisible by , so Alice wins.
In the second example Bob can always force the game to end in two turns, winning the game.