n,m = map(int,input().split()) A = list(map(int,input().split())) B = [A[i]//m for i in range(n)] g = 0 for b in B: g ^= b if g > 0: print('Alice') exit() R = [A[i] % m for i in range(n)] while True: if sum(R) == 0: print('Bob') exit() if sum(R) % 2 == 1: print('Alice') exit() RR = [] for r in R: RR.append(r // 2) R = RR[:]