import java.util.Scanner;

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

		if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

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

		if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} (N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0) (N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0) (N % 4 == 0) N % 4 N 4 0 (N % 7 == 0) N % 7 N 7 0 (N % 11 == 0) N % 11 N 11 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} N > 7 && (N - 7) % 4 == 0 N > 7 N 7 (N - 7) % 4 == 0 (N - 7) % 4 (N - 7) N 7 4 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} N > 14 && (N - 14) % 4 == 0 N > 14 N 14 (N - 14) % 4 == 0 (N - 14) % 4 (N - 14) N 14 4 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} N > 21 && (N - 21) % 4 == 0 N > 21 N 21 (N - 21) % 4 == 0 (N - 21) % 4 (N - 21) N 21 4 0 {
			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" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

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

		if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
} Main
import java.util.Scanner;

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

		if ((N % 4 == 0) || (N % 7 == 0) || (N % 11 == 0)) {
			System.out.println("Yes");
		} else if (N > 7 && (N - 7) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 14 && (N - 14) % 4 == 0) {
			System.out.println("Yes");
		} else if (N > 21 && (N - 21) % 4 == 0) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
}
