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