from collections import Counter def factorize(n): if n == 1: return [] res = [] x, y = n, 2 while y * y <= x: while x % y == 0: res.append(y) x //= y y += 1 if x > 1: res.append(x) return res N = int(input()) M = list(map(int,input().split())) g = 0 for m in M: c = Counter(factorize(m)) for v in c.values(): g ^= v % 2 print('Alice' if g != 0 else 'Bob')