for _ in range(int(input())):print("Bob"if int(input())+1 in[2**i for i in range(66)]else"Alice")