n = int(input()); m = 1 for i in range(2,n+1): m *= 2**i-1 print("No" if m%(2**(n+1)-1) else "Yes")