N=int(input()) if N in (6,28,496,8128): ans="Yes" else: ans="No" print(ans)