[print("Bob" if (int(input()) + 1).bit_count() == 1 else "Alice") for _ in range(int(input()))]