[ABC368F] 因数分解博弈 (Dividing Game)
Score : points
Problem Statement
You are given a sequence of positive integers , where each element is at least . Anna and Bruno play a game using these integers. They take turns, with Anna going first, performing the following operation.
- Choose an integer freely. Then, freely choose a positive divisor of that is not itself, and replace with .
The player who cannot perform the operation loses, and the other player wins. Determine who wins assuming both players play optimally for victory.
Constraints
-
-
-
All input values are integers.
Input
The input is given from Standard Input in the following format:
$N$
$A_1$ $A_2$ $\cdots$ $A_N$
Output
Print Anna if Anna wins the game, and Bruno if Bruno wins.
Sample Input 1
3
2 3 4
Sample Output 1
Anna
For example, the game might proceed as follows. Note that this example may not necessarily represent optimal play by both players:
-
Anna changes to .
-
Bruno changes to .
-
Anna changes to .
-
Bruno changes to .
-
Anna cannot operate on her turn, so Bruno wins.
Actually, for this sample, Anna always wins if she plays optimally.
Sample Input 2
4
2 3 4 6
Sample Output 2
Bruno