/*
  ***
  0.0
  *-*
 * * *
*  *  *
*  *  *
   *
   *
  * *
 *   *
 *   *
 	   	  		*/
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define pp pop_back
#define F first
#define S second
// set <int> :: iterator it = x.begin(); it != x.end(); it ++
using namespace std;
ll n,sum,num,maxi=-10e9,maxn=-10e9,mini=10e9,minn=10e9;
int main(){
	ios_base::sync_with_stdio(0);
	cin.tie();	cout.tie();
	//freopen("input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
	cin>>n;
	if(n<=7){
		cout<<"NO";
		return 0;
	}
	while(n>0){
		if(n%7==0){
			cout<<"YES";
			return 0;
		}
		if(n%4==0){
			cout<<"YES";
			return 0;
		}
		n-=4;
	}
	if(n%7==0||n%4==0){
		cout<<"YES";
		return 0;
	}
	cout<<"NO";
	return 0;
}
