#d1804. 石子游戏 II

石子游戏 II

Stone Game II

Problem Description

Alice and Bob are playing a game about stones.

There are nn piles of stones, where the ii-th pile initially contains aia_i 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 nn (1≤n≤1061\le n \le 10^6).

The second line contains nn positive integers a1,…,ana_1, \dots, a_n (1≤a1,…,an≤1091\le a_1, \dots, a_n \le 10^9).

Output Format

Alice or Bob, indicating the final winner.

Sample Input

2
2 2

Sample Output

Alice