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

int main(){
  int N,F=0,T;
  cin >> N;
  while(N>=0){
    if(!(N%7)) F = 1;
    N = N-4;
  }
  if(F) cout << "Yes" << endl;
  else cout << "No" << endl;
}