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