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 <= 3) {
			System.out.println("No");
			return;
		}
		boolean found = false;
		int xMax = N / 4;
		int yMax = N / 7;
		for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		System.out.println(found ? "Yes" : "No");
	}
} 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 <= 3) {
			System.out.println("No");
			return;
		}
		boolean found = false;
		int xMax = N / 4;
		int yMax = N / 7;
		for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		System.out.println(found ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		if (N <= 3) {
			System.out.println("No");
			return;
		}
		boolean found = false;
		int xMax = N / 4;
		int yMax = N / 7;
		for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		System.out.println(found ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		if (N <= 3) {
			System.out.println("No");
			return;
		}
		boolean found = false;
		int xMax = N / 4;
		int yMax = N / 7;
		for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		System.out.println(found ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc if (N <= 3) {
			System.out.println("No");
			return;
		} N <= 3 N 3 {
			System.out.println("No");
			return;
		} System.out.println("No") System.out.println System.out System System.out "No" return; boolean found = false; found false int xMax = N / 4; xMax N / 4 N 4 int yMax = N / 7; yMax N / 7 N 7 for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		} int x = 0; int x = 0; x 0 x <= xMax x xMax x++ x++ x {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		} {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		} for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			} int y = 0; int y = 0; y 0 y <= yMax y yMax y++ y++ y {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			} {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			} if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				} (4 * x) + (7 * y) == N (4 * x) + (7 * y) (4 * x) 4 x (7 * y) 7 y N {
					found = true;
					break;
				} found = true found true break; if (found) {
				break;
			} found {
				break;
			} break; System.out.println(found ? "Yes" : "No") System.out.println System.out System System.out found ? "Yes" : "No" found "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		if (N <= 3) {
			System.out.println("No");
			return;
		}
		boolean found = false;
		int xMax = N / 4;
		int yMax = N / 7;
		for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		System.out.println(found ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		if (N <= 3) {
			System.out.println("No");
			return;
		}
		boolean found = false;
		int xMax = N / 4;
		int yMax = N / 7;
		for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		System.out.println(found ? "Yes" : "No");
	}
} 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 <= 3) {
			System.out.println("No");
			return;
		}
		boolean found = false;
		int xMax = N / 4;
		int yMax = N / 7;
		for (int x = 0; x <= xMax; x++) {
			for (int y = 0; y <= yMax; y++) {
				if ((4 * x) + (7 * y) == N) {
					found = true;
					break;
				}
			}
			if (found) {
				break;
			}
		}
		System.out.println(found ? "Yes" : "No");
	}
}