N = int(input()) m = 1 for n in range(2,N+1): m *= (1 << n) - 1 M = (1 << (N + 1)) - 1 ans = 'Yes' if m % M: ans = 'No' print(ans)