from math import log while True: try: n=int(input()) if log(n,2)%1==0: print("Yes") else: print("No") except EOFError: break
log的domain是(0, \inf)
測資可能有0,所以math domain error