N = int(input()) M = list(map(int,input().split())) dat = [0] * 10 ** 4 prime = [] i = 2 while i < 10 ** 4: if dat[i] == 0: prime.append(i) for j in range(i * 2,10 ** 4,i): dat[j] = 1 i += 1 ans = 0 for m in M: for p in prime: count = 0 while m % p == 0: count += 1 m = m // p ans ^= (count % 3) if m == 1: break if ans == 0: print('Bob') else: print('Alice')