T = int(input()) for _ in range(T): N = int(input()) M = N + 1 ans = "Bob" while M != 1: if M % 2 == 1: ans = "Alice" M //= 2 print(ans)