C = set() now = 1 while now <= 10 ** 18: C.add(now) now = now * 2 + 1 for _ in range(int(input())): if int(input()) in C: print("Bob") else: print("Alice")