#include <iostream>
using namespace std;

int main(){
	int N;
	cin >> N;
	int sum=0;
	while (sum <= N){
		if((N-sum)%4==0){
			cout << "Yes"<< endl;
			return 0;
		}
		sum +=7;
	}
	cout <<"No"<< endl;

}


