#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 7 == 0) {
    cout << "Yes";
    return 0;
  }
  for (int i = 1; i <= 4; i++) {
    int va = i * 7;
    int sum = n - va;
    if (sum % 4 == 0) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}
