#include <bits/stdc++.h>
using namespace std;
int main(){
int w; cin >> w;
if (w%2 == 0 && w != 2){
cout << "YES\n";
}
else{
cout << "NO\n";
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpewogICAgaW50IHc7IGNpbiA+PiB3OwoKICAgIGlmICh3JTIgPT0gMCAmJiB3ICE9IDIpewogICAgICAgIGNvdXQgPDwgIllFU1xuIjsKICAgIH0KICAgIGVsc2V7CiAgICAgICAgY291dCA8PCAiTk9cbiI7CiAgICB9Cn0=