import java.util.*;

class Main {
	public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		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);
    }
} import java.util.*; util.* java class Main {
	public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		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);
    }
} Main public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		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);
    } main {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		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);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner String str = null; str null System.out.println(str) System.out.println System.out System System.out str String[] args args
import java.util.*;

class Main {
	public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
    	int N = scanner.nextInt();
		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);
    }
}