#include <bits/stdc++.h>
using namespace std;
const int MaxN = 1e5 + 5;
int n, m, i, j, k, tmp = 0, ans = 0;
int a[MaxN];
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; i++)
    for (i = 1; i <= n - 2; i++) {
      if ((a[i] * a[i + 1]) % 4 != 0) {
        tmp = a[i];
        a[i] = a[i + 2];
        a[i + 2] = tmp;
      }
    }
  for (i = 1; i <= n - 1; i++) {
    if ((a[i] * a[i + 1]) % 4 != 0) ans++;
  }
  if (ans)
    printf("NO\n");
  else
    printf("YES\n");
}
