import sys input = sys.stdin.readline def sub_grundy(k): sub_xor = 0 for i in range(2, int(k**0.5) + 1): tmp = 0 while k % i == 0: k //= i tmp += 1 sub_xor ^= tmp % 3 if k > 1: sub_xor ^= 1 return sub_xor n = int(input()) m = list(map(int, input().split())) xor = 0 for mi in m: xor ^= sub_grundy(mi) print("Alice" if xor != 0 else "Bob")