import sys, time, random from collections import deque, Counter, defaultdict input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 61 - 1 mod = 998244353 n, m = mi() a = li() def nim(a): x = 0 for i in a: x ^= i return x am = [v // m for v in a] if nim(am): print('Alice') else: am = [v % m for v in a] while sum(am): if sum(am) % 2: print('Alice') exit() am = [v // 2 for v in am] print('Bob')