import sys sys.setrecursionlimit(10 ** 6) def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) # 素因数分解して指数だけのリストを返す関数 def exps(x): if x < 3: return [1] res = [] x0 = x for d in range(2, x0): if d ** 2 > x: if x > 1: res.append(1) return res cnt = 0 while x % d == 0: x //= d cnt += 1 if cnt: res.append(cnt) def main(): n = II() mm = LI() g = 0 for m in mm: # 整数mのGrundy数を求める # 指数の mod 3 が素因数ごとのGrundy数なので # そのxor和をとったものが整数mのGrundy数 ee = exps(m) gm = 0 for e in ee: gm ^= e % 3 # 整数mのGrundy数のxor和をとると、全体のGrundy数 g^=gm if g:print("Alice") else:print("Bob") main()