#include <bits/stdc++.h>
using namespace std;
int ou(int a) {
if (a % 2 == 0)
return 1;
else return 0;
}
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; i++) {
if (i + j == n || ou(i) == 1 || ou(j) == 1) {
cout << "YES";
return 0;
}
}
}
cout << "NO";
return 0;
}