import bisect,collections,itertools,math,functools,heapq import sys #sys.setrecursionlimit(10**6) def I(): return int(sys.stdin.readline().rstrip()) def IN(): return int(input()) def LIN(): return list(map(int, input().split())) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LF(): return list(map(float,sys.stdin.readline().rstrip().split())) def SI(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) """ 方針 nim https://algo-logic.info/combinatorial-games/ """ # N,X,Y=LI() # A=LI() N=I() M=LI() def factorization(n): arr = [] temp = n for i in range(2, int(-(-n**0.5//1))+1): if temp%i==0: cnt=0 while temp%i==0: cnt+=1 temp //= i arr.append([i, cnt]) if temp!=1: arr.append([temp, 1]) if arr==[]: arr.append([n, 1]) return arr ans = 0 for v in M: f = factorization(v) for t,i in f: ans ^= i%3 if ans == 0: print('Bob') else: print('Alice')