"""
	Solution to Codeforces problem 4A
	Copyright (c) GeneralMing. All rights reserved.

	https://github.com/GeneralMing/codeforces
"""

w = int(input())

if(w%2 != 0 or w == 2):
	print("NO")
else:
	print("YES")