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