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