#c22804. 石子游戏 II
石子游戏 II
Stone Game II
Problem Description
Alice and Bob are playing a game with stones.
There are piles of stones, where the -th pile initially contains stones.
They take turns performing one of the following operations, starting with Alice:
- Split a pile that contains an odd number of stones into two non-empty piles.
- Merge two piles that each contain an even number of stones into one pile.
The player who cannot make any move loses.
Assuming both Alice and Bob play optimally, who will win the game?
Input Format
The first line contains an integer ().
The second line contains positive integers ().
Output Format
Output a single line containing either Alice or Bob, indicating the final winner.
Sample Input
2
2 2
Sample Output
Alice