#include using namespace std; int main(){ long long n;cin>>n; for(int i = 2; n >= i*i; i++){ if(!(n%2)){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; }