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