#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n;
	cin>>n;

	int f=0;
	int i=0;
	while(4*i <= n)
	{
		if((n-4*i)%7==0) f++;
		i++;
	}

	if(f) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}