#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
if(n%2 == 0 && n>2){
cout<<"YES";
}else{
cout<<"NO";
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbjsKICAgIGNpbj4+bjsKICAgIGlmKG4lMiA9PSAwICYmIG4+Mil7CiAgICAgICAgY291dDw8IllFUyI7CiAgICB9ZWxzZXsKICAgICAgICBjb3V0PDwiTk8iOwogICAgfQp9Cg==