import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer n = sc.nextInt();
		Integer maxC = n / 4;
		Integer maxD = n / 7;
		String answer = "No";

		for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			}
		System.out.println(answer);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer n = sc.nextInt();
		Integer maxC = n / 4;
		Integer maxD = n / 7;
		String answer = "No";

		for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer n = sc.nextInt();
		Integer maxC = n / 4;
		Integer maxD = n / 7;
		String answer = "No";

		for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			}
		System.out.println(answer);
	} main {
		Scanner sc = new Scanner(System.in);
		Integer n = sc.nextInt();
		Integer maxC = n / 4;
		Integer maxD = n / 7;
		String answer = "No";

		for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			}
		System.out.println(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Integer maxC = n / 4; maxC n / 4 n 4 Integer maxD = n / 7; maxD n / 7 n 7 String answer = "No"; answer "No" for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			} int ic = 0; int ic = 0; ic 0 ic <= maxC ic maxC ic ++ ic ++ ic {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			} {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			} for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				} int id = 0; int id = 0; id 0 id <= maxD id maxD id ++ id ++ id {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				} {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				} int total = ic * 4 + id * 7; total ic * 4 + id * 7 ic * 4 ic 4 id * 7 id 7 if(total == n) {
						answer = "Yes";
					} total == n total n {
						answer = "Yes";
					} answer = "Yes" answer "Yes" System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer n = sc.nextInt();
		Integer maxC = n / 4;
		Integer maxD = n / 7;
		String answer = "No";

		for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			}
		System.out.println(answer);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer n = sc.nextInt();
		Integer maxC = n / 4;
		Integer maxD = n / 7;
		String answer = "No";

		for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			}
		System.out.println(answer);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer n = sc.nextInt();
		Integer maxC = n / 4;
		Integer maxD = n / 7;
		String answer = "No";

		for(int ic = 0; ic <= maxC; ic ++) {
			for(int id = 0; id <= maxD; id ++) {
					int total = ic * 4 + id * 7;
					if(total == n) {
						answer = "Yes";
					}
				}
			}
		System.out.println(answer);
	}
}