#include <bits/stdc++.h> #include <cstdio> using namespace std; long long n; string y = "YES", o = "NO"; int main () { cin >> n; if (n % 2 != 0) cout << o; else if (n / 2 % 2 == 0) cout << y; else cout << n; return 0; }