N,M=map(int,input().split()) A=list(map(int,input().split())) x=0 y=0 for i in range(N): p=A[i]//M q=A[i]%M x^=p y^=q if x==0 and y==0: print('Bob') else: print('Alice')