import java.util.*;
public class Main {
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		boolean flg = false;
		loop:for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					flg = true;
					System.out.println("Yes");
					break loop;
				}
			}
		}
		if(!flg) System.out.println("No");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		boolean flg = false;
		loop:for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					flg = true;
					System.out.println("Yes");
					break loop;
				}
			}
		}
		if(!flg) System.out.println("No");
	}
} Main public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		boolean flg = false;
		loop:for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					flg = true;
					System.out.println("Yes");
					break loop;
				}
			}
		}
		if(!flg) System.out.println("No");
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		boolean flg = false;
		loop:for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					flg = true;
					System.out.println("Yes");
					break loop;
				}
			}
		}
		if(!flg) System.out.println("No");
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.nextLine()); N Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner boolean flg = false; flg false if(!flg) System.out.println("No"); !flg flg 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[]){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		boolean flg = false;
		loop:for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					flg = true;
					System.out.println("Yes");
					break loop;
				}
			}
		}
		if(!flg) System.out.println("No");
	}
} public class Main {
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		boolean flg = false;
		loop:for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					flg = true;
					System.out.println("Yes");
					break loop;
				}
			}
		}
		if(!flg) System.out.println("No");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		boolean flg = false;
		loop:for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					flg = true;
					System.out.println("Yes");
					break loop;
				}
			}
		}
		if(!flg) System.out.println("No");
	}
}