#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n<4)cout<<"No"<<endl;
else if(n%4==0||n%7==0)cout<<"Yes"<<endl;
else{
    int a=n/7;
    int b=n/4;
    
    if((n-(a*7))%4==0&&a>2||(n-(b*4))%7==0&&b>2)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}
}