print("YES" if input() == "1" else "NO")