import math for _ in range(int(input())): N= int(input()) if math.log2(N+1)!=int(math.log2(N+1)): print('Alice') else: print('Bob')