import java.util.*;

class Main {
	public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		
		String s = calculate(N);
		System.out.println(s);
	}
	
	public static String calculate(int n) {
		String str = null;
		
		calc:
		for (int x = 0; x <= n; x++) {
			for (int y = 0; y <= n; y++) {
				if ( n == 4*x + 7*y) {
					str = "Yes";
					break calc;
				}
			}
			str ="No";
		}
		
		//System.out.println(str);
		return str;
	}
} import java.util.*; util.* java class Main {
	public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		
		String s = calculate(N);
		System.out.println(s);
	}
	
	public static String calculate(int n) {
		String str = null;
		
		calc:
		for (int x = 0; x <= n; x++) {
			for (int y = 0; y <= n; y++) {
				if ( n == 4*x + 7*y) {
					str = "Yes";
					break calc;
				}
			}
			str ="No";
		}
		
		//System.out.println(str);
		return str;
	}
} Main public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		
		String s = calculate(N);
		System.out.println(s);
	} main {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		
		String s = calculate(N);
		System.out.println(s);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner String s = calculate(N); s calculate(N) calculate N System.out.println(s) System.out.println System.out System System.out s String[] args args public static String calculate(int n) {
		String str = null;
		
		calc:
		for (int x = 0; x <= n; x++) {
			for (int y = 0; y <= n; y++) {
				if ( n == 4*x + 7*y) {
					str = "Yes";
					break calc;
				}
			}
			str ="No";
		}
		
		//System.out.println(str);
		return str;
	} calculate {
		String str = null;
		
		calc:
		for (int x = 0; x <= n; x++) {
			for (int y = 0; y <= n; y++) {
				if ( n == 4*x + 7*y) {
					str = "Yes";
					break calc;
				}
			}
			str ="No";
		}
		
		//System.out.println(str);
		return str;
	} String str = null; str null return str; str int n n
import java.util.*;

class Main {
	public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		
		String s = calculate(N);
		System.out.println(s);
	}
	
	public static String calculate(int n) {
		String str = null;
		
		calc:
		for (int x = 0; x <= n; x++) {
			for (int y = 0; y <= n; y++) {
				if ( n == 4*x + 7*y) {
					str = "Yes";
					break calc;
				}
			}
			str ="No";
		}
		
		//System.out.println(str);
		return str;
	}
}