#d1804. 石子游戏 II
石子游戏 II
Stone Game II
Problem Description
Alice and Bob are playing a game about 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 with an odd number of stones into two non-empty piles.
- Merge two piles with 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
Alice or Bob, indicating the final winner.
Sample Input
2
2 2
Sample Output
Alice