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

#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define P pair<int, int>

int main() {
  int x;
  cin >> x;
  if (x == 0 || x == 4 || x == 10) cout << "Yes" << endl;
  else cout << "No" << endl;


}