n = int(input()) p1 = 1 for i in range(2, n + 1): p1 *= 2 ** i - 1 print("Yes" if p1 % (2 ** (n + 1) - 1) == 0 else "No")