#include<iostream>
using namespace std;
int N;
bool r;
void rec(int n){
  if(n==0)r=true;
  if(n<=0)return;
  rec(n-4);
  rec(n-7);
}
int main(void){
  cin>>N;
  rec(N);
  cout<<(r?"Yes":"No")<<endl;
  return 0;
}
