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 jdg = n%28;
		if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} 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 jdg = n%28;
		if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int jdg = n%28;
		if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int jdg = n%28;
		if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	} 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 jdg = n%28; jdg n%28 n 28 if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		} jdg == 0 jdg 0 {
			ans = "Yes";
		} ans = "Yes" ans "Yes" {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		} while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			} jdg >= 3 jdg 3 {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			} if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				} jdg%4 == 0 || jdg%7 == 0 jdg%4 == 0 jdg%4 jdg 4 0 jdg%7 == 0 jdg%7 jdg 7 0 {
					ans = "Yes";
					break;
				} ans = "Yes" ans "Yes" break; {
					jdg -= 7;
				} jdg -= 7 jdg 7 System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc 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 jdg = n%28;
		if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";
		int jdg = n%28;
		if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} 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 jdg = n%28;
		if(jdg == 0) {
			ans = "Yes";
		}else {
			while(jdg >= 3) {
				if(jdg%4 == 0 || jdg%7 == 0) {
					ans = "Yes";
					break;
				}else {
					jdg -= 7;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
}
