#include<bits/stdc++.h>
using namespace std;
int main()
{
int w;
cin>>w;
if(w%2==1)
{
cout<<"NO"<<endl;
}
else{
if(w==2)cout<<"NO"<<endl;
else cout<<"YES"<<endl;
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKQp7CiAgICBpbnQgdzsKICAgIGNpbj4+dzsKCiAgICBpZih3JTI9PTEpCiAgICB7CiAgICAgICAgY291dDw8Ik5PIjw8ZW5kbDsKICAgIH0KICAgIGVsc2V7CiAgICAgICAgaWYodz09Miljb3V0PDwiTk8iPDxlbmRsOwogICAgICAgIGVsc2UgY291dDw8IllFUyI8PGVuZGw7CiAgICB9CiAgICByZXR1cm4gMDsKCn0K