a = {6, 28, 496, 8128, 33550336, 8589869056, 137438691328, 9223372034707292160} n = int(input()) print("Yes" if n in a else "No")