S = set() a = 2 while a < 10**18 : S.add(a-1) a *= 2 N = int(input()) for _ in range(N) : x = int(input()) print("Bob" if x in S else "Alice")