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


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