// R38988487 #include using namespace std; int main() { int x; cin >> x; cout << (x == 2 ? "NO" : (x % 2 ? "NO" : "YES")) << endl; return 0; }