// Link to problem :http://codeforces.com/problemset/problem/4/A
#include<iostream>
#include<string>
using namespace std;
int main(){
	int t;
	cin>>t;
	if(t%2==0)
		cout<<"YES";
	else
		cout<<"NO";
	return 0;
}