t = int(input()) for _ in range(t): x = int(input()) if((x & (x - 1)) == 0): print("Yes") else : print("No")