import math def fact(x): L=int(math.sqrt(x)) FACT=dict() for i in range(2,L+2): while x%i==0: FACT[i]=FACT.get(i,0)+1 x=x//i if x!=1: FACT[x]=FACT.get(x,0)+1 return FACT FACT=[dict() for i in range(10**4+5)] for i in range(1,10**4+1): FACT[i]=fact(i) def grundy(x): if x==1: return 0 LIST=[] for f in FACT[x]: LIST.append(G[x//f]) if (x//f)%f==0: LIST.append(G[x//f//f]) SET=set(LIST) for i in range(10**9): if i in SET: continue else: G[x]=i break G=[0]*(10**4+5) for i in range(1,10**4+5): grundy(i) N=int(input()) A=list(map(int,input().split())) XOR=0 for a in A: XOR^=G[a] if XOR!=0: print("Alice") else: print("Bob")