from math import prod N = int(input()) M = [-1, -1] + [pow(2, i) - 1 for i in range(2, N+2)] P = prod(M[2:N+1]) r = P % M[N+1] ans = r == 0 if ans is True: print("Yes") else: print("No")