import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		sc.close();
		boolean ans = false;
		for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		}
		System.out.println(ans ? "Yes" : "No");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		sc.close();
		boolean ans = false;
		for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		}
		System.out.println(ans ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		sc.close();
		boolean ans = false;
		for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		}
		System.out.println(ans ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		sc.close();
		boolean ans = false;
		for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		}
		System.out.println(ans ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc sc.close() sc.close sc boolean ans = false; ans false for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		} int i = 0; int i = 0; i 0 i < 100 i 100 i++ i++ i {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		} {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		} for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			} int j = 0; int j = 0; j 0 j < 100 j 100 j++ j++ j {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			} {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			} if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				} i * 4 + j * 7 == a i * 4 + j * 7 i * 4 i 4 j * 7 j 7 a {
					ans = true;
					break;
				} ans = true ans true break; System.out.println(ans ? "Yes" : "No") System.out.println System.out System System.out ans ? "Yes" : "No" ans "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		sc.close();
		boolean ans = false;
		for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		}
		System.out.println(ans ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		sc.close();
		boolean ans = false;
		for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		}
		System.out.println(ans ? "Yes" : "No");
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		sc.close();
		boolean ans = false;
		for (int i = 0; i < 100; i++) {
			for (int j = 0; j < 100; j++) {
				if (i * 4 + j * 7 == a) {
					ans = true;
					break;
				}
			}
		}
		System.out.println(ans ? "Yes" : "No");
	}
}