public class Main {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in);

		System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No");
	}

	
	public static boolean calc(int n) {
		for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		}
		return false;
	}
} public class Main {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in);

		System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No");
	}

	
	public static boolean calc(int n) {
		for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		}
		return false;
	}
} Main public static void main(String[] args) {
		@SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in);

		System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No");
	} main {
		@SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in);

		System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No");
	} @SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in); scanner new java.util.Scanner(System.in) System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No") System.out.println System.out System System.out (Main.calc(scanner.nextInt()))?"Yes":"No" (Main.calc(scanner.nextInt())) Main.calc Main scanner.nextInt() scanner.nextInt scanner "Yes" "No" String[] args args public static boolean calc(int n) {
		for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		}
		return false;
	} calc {
		for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		}
		return false;
	} for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		} int i4 = 0; int i4 = 0; i4 0 i4*4 <= n i4*4 i4 4 n i4++ i4++ i4 {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		} {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		} if((n-i4*4)%7 == 0) {
					return true;
				} (n-i4*4)%7 == 0 (n-i4*4)%7 (n-i4*4) n i4*4 i4 4 7 0 {
					return true;
				} return true; true return false; false int n n public class Main {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in);

		System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No");
	}

	
	public static boolean calc(int n) {
		for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		}
		return false;
	}
} public class Main {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in);

		System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No");
	}

	
	public static boolean calc(int n) {
		for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		}
		return false;
	}
} Main
public class Main {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		java.util.Scanner scanner = new java.util.Scanner(System.in);

		System.out.println((Main.calc(scanner.nextInt()))?"Yes":"No");
	}

	
	public static boolean calc(int n) {
		for (int i4 = 0; i4*4 <= n; i4++) {
				if((n-i4*4)%7 == 0) {
					return true;
				}
		}
		return false;
	}
}