for _ in range(int(input())): N = int(input()) + 1 if N == N & -N: print("Bob") else: print("Alice")