import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int c=0;
		int d = 0;

		while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		}
		System.out.println(ans);
	}


} 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();
		String ans = "No";
		int c=0;
		int d = 0;

		while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		}
		System.out.println(ans);
	}


} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int c=0;
		int d = 0;

		while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int c=0;
		int d = 0;

		while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String ans = "No"; ans "No" int c=0; c 0 int d = 0; d 0 while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		} 4*c+7*d<=n 4*c+7*d 4*c 4 c 7*d 7 d n {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		} while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			} 4*c+7*d<=n 4*c+7*d 4*c 4 c 7*d 7 d n {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			} if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++; 4*c+7*d==n 4*c+7*d 4*c 4 c 7*d 7 d n {
					ans = "Yes";
					break;
				} ans = "Yes" ans "Yes" break; d++ d c++ c d=0 d 0 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int c=0;
		int d = 0;

		while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		}
		System.out.println(ans);
	}


} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int c=0;
		int d = 0;

		while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		}
		System.out.println(ans);
	}


} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int c=0;
		int d = 0;

		while(4*c+7*d<=n) {
			while(4*c+7*d<=n) {
				if(4*c+7*d==n) {
					ans = "Yes";
					break;
				}else d++;
			}
			c++;
			d=0;
		}
		System.out.println(ans);
	}


}