#include using namespace std; typedef long long ll; bool prime(ll n){ for(ll i = 2; i <= sqrt(n) + 1; i++){ if(n % i == 0) return false; } return true; } int main(void){ ll a; cin >> a; if(prime(a) && a % 2 == 1) cout << "NO" << endl; else cout << "YES" << endl; return 0; }