for _ in range(int(input())): N = int(input())+1 while N%2==0: N//=2 if N==1: print('Bob') else: print('Alice')