g=[1] for i in range(1,61): g+=[g[-1]+(2**i)] T=int(input()) for _ in range(T): n=int(input()) print("Bob" if n in g else "Alice")