import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		boolean result = false;
		for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		boolean result = false;
		for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		boolean result = false;
		for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		System.out.println(result ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		boolean result = false;
		for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		System.out.println(result ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc boolean result = false; result false for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		} 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++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		} {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		} for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			} int j = 0; int j = 0; j 0 j <= N/7 j N/7 N 7 j++ j++ j {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			} {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			} int total = i*4 + j*7; total i*4 + j*7 i*4 i 4 j*7 j 7 if (total==N) {
					result = true;
					break;
				} total==N total N {
					result = true;
					break;
				} result = true result true break; if (result) {
				break;
			} result {
				break;
			} break; System.out.println(result ? "Yes" : "No") System.out.println System.out System System.out result ? "Yes" : "No" result "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		boolean result = false;
		for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		boolean result = false;
		for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.next());
		boolean result = false;
		for (int i = 0; i <= N/4; i++) {
			for (int j = 0; j <= N/7; j++) {
				int total = i*4 + j*7;
				if (total==N) {
					result = true;
					break;
				}
			}
			if (result) {
				break;
			}
		}
		System.out.println(result ? "Yes" : "No");
	}
}