import java.util.Scanner;

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

		int res = 0;
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		}
		if (flg) {
			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();
		boolean flg = false;

		int res = 0;
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		}
		if (flg) {
			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();
		boolean flg = false;

		int res = 0;
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		}
		if (flg) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();

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

		int res = 0;
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		}
		if (flg) {
			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 boolean flg = false; flg false int res = 0; res 0 for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		} int i = 0; int i = 0; i 0 i < 30 i 30 i++ i++ i {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		} {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		} for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			} int j = 0; int j = 0; j 0 j < 20 j 20 j++ j++ j {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			} {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			} res = 4 * i + 7 * j res 4 * i + 7 * j 4 * i 4 i 7 * j 7 j if (res == N) {
					flg = true;
					break;
				} res == N res N {
					flg = true;
					break;
				} flg = true flg true break; if (res > N) {
					break;
				} res > N res N {
					break;
				} break; if (flg) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} flg {
			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();
		boolean flg = false;

		int res = 0;
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		}
		if (flg) {
			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();
		boolean flg = false;

		int res = 0;
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		}
		if (flg) {
			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();
		boolean flg = false;

		int res = 0;
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 20; j++) {
				res = 4 * i + 7 * j;
				if (res == N) {
					flg = true;
					break;
				}
				if (res > N) {
					break;
				}
			}
		}
		if (flg) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		sc.close();

	}

}