#include<bits/stdc++.h>
using namespace std;
bool dfs(int x){
  if(x<0)return false;
  if(x==0)return true;
  return dfs(x-4)||dfs(x-7);
}
int N;
int main(){
  cin>>N;
  cout<<(dfs(N)?"Yes":"No")<<endl;
}
