#include <bits/stdc++.h>
using namespace std;
int main() {
int w;
cin>>w;
w%2 == 0 && w !=2 ? cout<<"YES" : cout<<"NO" ;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCWludCB3OwoJY2luPj53OwoJdyUyID09IDAgJiYgdyAhPTIgPyBjb3V0PDwiWUVTIiA6IGNvdXQ8PCJOTyIgOwoJCglyZXR1cm4gMDsKfQ==