import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

//Atcoder用

/*
 * BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] abc = br.readLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);
 */
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] get = br.readLine().split(" ");
		int n = Integer.parseInt(get[0]);

		for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}


} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] get = br.readLine().split(" ");
		int n = Integer.parseInt(get[0]);

		for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}


} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] get = br.readLine().split(" ");
		int n = Integer.parseInt(get[0]);

		for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] get = br.readLine().split(" ");
		int n = Integer.parseInt(get[0]);

		for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] get = br.readLine().split(" "); get br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(get[0]); n Integer.parseInt(get[0]) Integer.parseInt Integer get[0] get 0 for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		} int c=0; int c=0; c 0 c<26 c 26 c++ c++ c {
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		} {
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		} for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			} int d=0; int d=0; d 0 d<15 d 15 d++ d++ d {
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			} {
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			} if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				} (4*c) + (7*d) == n (4*c) + (7*d) (4*c) 4 c (7*d) 7 d n {
					System.out.println("Yes");
					System.exit(0);
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] get = br.readLine().split(" ");
		int n = Integer.parseInt(get[0]);

		for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}


} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] get = br.readLine().split(" ");
		int n = Integer.parseInt(get[0]);

		for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}


} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

//Atcoder用

/*
 * BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] abc = br.readLine().split(" ");
		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);
 */
public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] get = br.readLine().split(" ");
		int n = Integer.parseInt(get[0]);

		for(int c=0;c<26;c++){
			for(int d=0;d<15;d++){
				if((4*c) + (7*d) == n){
					System.out.println("Yes");
					System.exit(0);
				}
			}
		}
		System.out.println("No");
	}


}