H. The Game of Two Elves
Grandpa Frost has devised an intriguing game for his elf friends, Archie and Anton. He has drawn a sequence of bits for them to play with.
The game proceeds in turns, starting with Archie. During a turn, an elf must select an index such that and the -th bit of the sequence is . The elf then flips all bits from position to (i.e., bits that are become , and bits that are become ). The elf who cannot make a move loses the game.
Both Archie and Anton are very clever and will play the game optimally. Your task is to determine the winner for each of the initial sequences provided by Grandpa. Note that all games are independent of each other.
Input
The first line contains a single integer (), representing the number of games.
Each game is described by two lines:
The first line contains a single integer (), the length of the bit sequence.
The second line contains a sequence of bits.
Output
For each game, output "Archie" if Archie wins, or "Anton" if Anton wins.
Examples
Note
In the first example, after Archie's only possible move, the sequence becomes "110". Anton can then change it to "000" in one move and win.
In the second and third examples, Archie wins after making just one move.
Scoring
This problem includes two test cases with non-zero scores. One test case is worth points and has additional constraints: , .