import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int amari = n%28;

		boolean flag= isflag(amari);
		if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		}




	}

	public static boolean isflag(int amari) {
		boolean flag =false;
		if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		}
		return flag;
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int amari = n%28;

		boolean flag= isflag(amari);
		if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		}




	}

	public static boolean isflag(int amari) {
		boolean flag =false;
		if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		}
		return flag;
	}

} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int amari = n%28;

		boolean flag= isflag(amari);
		if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		}




	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int amari = n%28;

		boolean flag= isflag(amari);
		if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		}




	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int amari = n%28; amari n%28 n 28 boolean flag= isflag(amari); flag isflag(amari) isflag amari if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		} flag {

			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		} amari=amari-7 amari amari-7 amari 7 if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				} amari>0&&isflag(amari) amari>0 amari 0 isflag(amari) isflag amari {
					System.out.println("Yes");
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				} amari=amari-7 amari amari-7 amari 7 if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						} amari>0&&isflag(amari) amari>0 amari 0 isflag(amari) isflag amari {
							System.out.println("Yes");
						} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						} amari=amari-7 amari amari-7 amari 7 if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							} amari>0&&isflag(amari) amari>0 amari 0 isflag(amari) isflag amari {
								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 static boolean isflag(int amari) {
		boolean flag =false;
		if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		}
		return flag;
	} isflag {
		boolean flag =false;
		if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		}
		return flag;
	} boolean flag =false; flag false if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		} amari == 4 amari 4 {
			flag=true;
		} flag=true flag true if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		} amari == 4 amari 4 {
			flag=true;
		} flag=true flag true if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		} amari %4==0 amari %4 amari 4 0 {
			flag=true;
		} flag=true flag true if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		} amari %7==0 amari %7 amari 7 0 {
			flag=true;
		} flag=true flag true if(amari %7==4){
			flag=true;
		} amari %7==4 amari %7 amari 7 4 {
			flag=true;
		} flag=true flag true return flag; flag int amari amari public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int amari = n%28;

		boolean flag= isflag(amari);
		if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		}




	}

	public static boolean isflag(int amari) {
		boolean flag =false;
		if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		}
		return flag;
	}

} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int amari = n%28;

		boolean flag= isflag(amari);
		if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		}




	}

	public static boolean isflag(int amari) {
		boolean flag =false;
		if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		}
		return flag;
	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int amari = n%28;

		boolean flag= isflag(amari);
		if(flag){

			System.out.println("Yes");
		}else {
			amari=amari-7;

				if(amari>0&&isflag(amari)){
					System.out.println("Yes");
				}else {
					amari=amari-7;

						if(amari>0&&isflag(amari)){
							System.out.println("Yes");
						}else {
							amari=amari-7;

							if(amari>0&&isflag(amari)){
								System.out.println("Yes");
							}else {
								System.out.println("No");		
							}
						}
				}
		}




	}

	public static boolean isflag(int amari) {
		boolean flag =false;
		if(amari == 4){
			flag=true;
		}else if(amari == 4){
			flag=true;
		}else if(amari %4==0){
			flag=true;
		}else if(amari %7==0){
			flag=true;
		}else if(amari %7==4){
			flag=true;
		}
		return flag;
	}

}