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