#include using namespace std; int main() { int n; int i; cin >> n; i = n - 2; if (i % 2 == 0 && i > 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }