from sys import stdinfor s in stdin: i = 0 while True: if 2**i == int(s): print("Yes") break elif 2**i > int(s): print("No") break i += 1
有更快的方法嗎?