#include<iostream>
using namespace std;
int main(){
  int cnt =0, n;
  cin>>n;
  for(int i=0;i<=25;i++){for(int j=0;j<=15;j++){if(4*i+7*j==n)cnt++;}}
  if(cnt>0)cout<<"Yes"<<endl;else cout<<"No"<<endl;
}
