N = int(input()) print("YES" if N % 2 == 0 else "NO")