import java.util.*;
public class Main {
	public static boolean kaimono(int n) {
		for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		}
		return false;
	}
	
	
	
	
	
	
	
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		
	}

} import java.util.*; util.* java public class Main {
	public static boolean kaimono(int n) {
		for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		}
		return false;
	}
	
	
	
	
	
	
	
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		
	}

} Main public static boolean kaimono(int n) {
		for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		}
		return false;
	} kaimono {
		for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		}
		return false;
	} for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		} 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++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		} {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		} for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			} int j = 0; int j = 0; j 0 j <= n/7 j n/7 n 7 j++ j++ j {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			} {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			} if(n==(4*i)+(7*j)) {
					return true;
				} n==(4*i)+(7*j) n (4*i)+(7*j) (4*i) 4 i (7*j) 7 j {
					return true;
				} return true; true return false; false int n n public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		
	} main {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} kaimono(n) kaimono n {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static boolean kaimono(int n) {
		for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		}
		return false;
	}
	
	
	
	
	
	
	
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		
	}

} public class Main {
	public static boolean kaimono(int n) {
		for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		}
		return false;
	}
	
	
	
	
	
	
	
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		
	}

} Main
import java.util.*;
public class Main {
	public static boolean kaimono(int n) {
		for(int i = 0; i <= n/4; i++) {
			for(int j = 0; j <= n/7; j++) {
				if(n==(4*i)+(7*j)) {
					return true;
				}
			}
		}
		return false;
	}
	
	
	
	
	
	
	
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		if(kaimono(n)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
		
		
		
	}

}
