#include <bits/stdc++.h>
using namespace std;

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int x;
  cin >> x;
  if (x == 0 or x == 4 or x == 10) {
    cout << "Yes\n";
  } else {
    cout << "No\n";
  }
}