import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		scanner.close();

		boolean flag = false;

		for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		scanner.close();

		boolean flag = false;

		for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		scanner.close();

		boolean flag = false;

		for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		scanner.close();

		boolean flag = false;

		for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner boolean flag = false; flag false for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		} int n = 0; int n = 0; n 0 n <= 25 n 25 n++ n++ n {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		} {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		} for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			} int m = 0; int m = 0; m 0 m <= 14 m 14 m++ m++ m {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			} {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			} if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				} n * 4 + m * 7 == N n * 4 + m * 7 n * 4 n 4 m * 7 m 7 N {
					flag = true;
					break;
				} flag = true flag true break; if (flag) {
				break;
			} flag {
				break;
			} break; if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} flag {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		scanner.close();

		boolean flag = false;

		for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		scanner.close();

		boolean flag = false;

		for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		scanner.close();

		boolean flag = false;

		for (int n = 0; n <= 25; n++) {
			for (int m = 0; m <= 14; m++) {
				if (n * 4 + m * 7 == N) {
					flag = true;
					break;
				}
			}
			if (flag) {
				break;
			}
		}
		if (flag) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
