Alice and Bob are playing a game. They have a permutation $$$p$$$ of length $$$n$$$ — an array of $$$n$$$ elements in which every integer from $$$1$$$ to $$$n$$$ occurs exactly once. Initially, every element of the permutation is colored white.
The players take turns; Alice goes first. On each turn, the current player chooses between $$$1$$$ and $$$k$$$ white elements and colors all of them either red or blue. All elements chosen on the same turn must receive the same color.
The game ends when there are no white elements left. If the resulting permutation can be sorted in increasing order by swapping elements of the same color, Alice wins. Otherwise, Bob wins. Any two elements may be swapped as long as they have the same color.
Determine who wins if both players play optimally.
The first line contains one integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases.
Each test case consists of two lines:
Additional constraints on the input:
For each test case, print Alice on a separate line if Alice wins, or Bob if Bob wins.
102 11 22 12 12 22 13 22 3 14 22 3 1 48 32 3 1 5 6 4 8 710 32 3 1 5 6 4 8 7 10 96 21 2 3 5 6 47 14 5 6 1 2 3 78 14 5 6 1 2 3 7 8
AliceBobAliceBobAliceAliceBobBobAliceBob