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

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