#include <bits/stdc++.h>
using namespace std;
int n;
int cnt;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    long long x;
    if (x % 4 != 0) cnt++;
  }
  if (cnt > 2)
    cout << "NO";
  else
    cout << "YES";
}
