T = int(input()) for _ in range(T): N = int(input()) if N.bit_count() == N.bit_length(): print("Bob") else: print("Alice")