Alice and Bob's difference game

Two players alternately add the absolute difference of two set elements when that difference is not already present; determine the winner under optimal play.

Medium7Game theoryMathNumber theoryImplementationNo attempts yetTime limit2sMemory limit512 MB

Problem

Alice and Bob made up a game for two players. The rules are as follows.

  1. The game starts from one set of nn distinct positive integers.
  2. The two players take turns. On your turn you pick two distinct numbers xx and yy from the set. The pair cannot be picked if xy|x - y| is already in the set. After picking xx and yy you put xy|x - y| into the set, and your turn ends.
  3. A player who has no pair (x,y)(x, y) left to pick loses.

Alice always moves first. Both players play optimally. Print who wins for the given nn positive integers.

Input

The first line contains the size nn of the starting set. (2n1002 \le n \le 100)

The second line contains the elements c1,c2,,cnc_1, c_2, \dots, c_n separated by spaces. (1ci1091 \le c_i \le 10^9)

All cic_i are distinct.

Output

Print "Alice" if Alice wins, or "Bob" if Bob wins.