import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String result = "No";
		for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		}
		System.out.println(result);

	}

} 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();
		String result = "No";
		for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		}
		System.out.println(result);

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String result = "No";
		for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		}
		System.out.println(result);

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String result = "No";
		for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		}
		System.out.println(result);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String result = "No"; result "No" for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		} int i = 0; int i = 0; i 0 i <= 100/4 i 100/4 100 4 i++ i++ i {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		} {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		} for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			} int j = 0; int j = 0; j 0 j <= 100/7 j 100/7 100 7 j++ j++ j {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			} {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			} int total = 4 * i + 7 * j; total 4 * i + 7 * j 4 * i 4 i 7 * j 7 j if(total == N) {
					result = "Yes";
					break;
				} total == N total N {
					result = "Yes";
					break;
				} result = "Yes" result "Yes" break; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String result = "No";
		for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		}
		System.out.println(result);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String result = "No";
		for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		}
		System.out.println(result);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String result = "No";
		for(int i = 0; i <= 100/4;i++) {
			for(int j = 0; j <= 100/7;j++) {
				int total = 4 * i + 7 * j;
				if(total == N) {
					result = "Yes";
					break;
				}
			}
		}
		System.out.println(result);

	}

}