# sys, pypy なし T = int(input()) for _ in range(T): N = int(input()) if (N & (N + 1)) == 0: print("Bob") else: print("Alice")