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

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