#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;cin>>n;
  string ans="No";
  for(int f=0;f<=25;++f){
    for(int s=0;s<=15;++s){
      if(4*f+7*s==n)ans="Yes";
    }
  }
  cout<<ans<<endl;
}