#include<iostream>
using namespace std;

int main(){
  int n, i, flag = 0;
  cin >> n;
  for(i = 0; i*7 <= n; i++) if(!((n-7*i)%4)) flag = 1;
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}