#include<bits/stdc++.h>
using namespace std;
int main(){
int w,i;
cin>>w;
if(w % 2 == 0 && w != 2){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
/**************************************************************
Problem: 1544
User: admin
Language: C++
Result: Accepted
Time:10 ms
Memory:2072 kb
****************************************************************/