// R38988487

#include <bits/stdc++.h>

using namespace std;

int main() {
    int x;
    cin >> x;
    cout << (x == 2 ? "NO" : (x % 2 ? "NO" : "YES")) << endl;
    return 0;
}