print("YES" if 3 < int(input()) + 1 else "NO")