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

int main(){
	int n;
	scanf("%d", &n);
	for(int i=0;i<=n;i++){
		int rem = n-i*4;
		if(rem >= 0 && rem%7 == 0) return !printf("Yes\n");
	}
	printf("No\n");
}