
import java.util.Scanner;

public class Main {
	public static void main(String arg[]) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		sc.close();

		boolean bool = false;

		for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		}

		System.out.print(bool == true ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String arg[]) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		sc.close();

		boolean bool = false;

		for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		}

		System.out.print(bool == true ? "Yes" : "No");
	}
} Main public static void main(String arg[]) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		sc.close();

		boolean bool = false;

		for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		}

		System.out.print(bool == true ? "Yes" : "No");
	} main {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		sc.close();

		boolean bool = false;

		for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		}

		System.out.print(bool == true ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.close() sc.close sc boolean bool = false; bool false for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		} int i = 0; int i = 0; i 0 i <= N / 4 i N / 4 N 4 i++ i++ i {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		} {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		} for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			} int j = 0; int j = 0; j 0 j <= N / 7 j N / 7 N 7 j++ j++ j {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			} {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			} if (N == (4 * i + 7 * j)) {
					bool = true;
				} N == (4 * i + 7 * j) N (4 * i + 7 * j) 4 * i 4 i 7 * j 7 j {
					bool = true;
				} bool = true bool true System.out.print(bool == true ? "Yes" : "No") System.out.print System.out System System.out bool == true ? "Yes" : "No" bool == true bool true "Yes" "No" String arg[] arg public class Main {
	public static void main(String arg[]) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		sc.close();

		boolean bool = false;

		for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		}

		System.out.print(bool == true ? "Yes" : "No");
	}
} public class Main {
	public static void main(String arg[]) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		sc.close();

		boolean bool = false;

		for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		}

		System.out.print(bool == true ? "Yes" : "No");
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String arg[]) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		sc.close();

		boolean bool = false;

		for (int i = 0; i <= N / 4; i++) {
			for (int j = 0; j <= N / 7; j++) {

				if (N == (4 * i + 7 * j)) {
					bool = true;
				}
			}
		}

		System.out.print(bool == true ? "Yes" : "No");
	}
}