#include<iostream>

using namespace std;

int main(){
  int n,i,j,c=0;
  
  cin>>n;
  
  for(i=n/7;i>=0;i--){
    j=(n-7*i)%4;
    if(j==0)
      c++;
  }
  cout<<(c>0?"Yes":"No")<<endl;
    return 0;
    
}