import java.util.ArrayList;
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int toi = Integer.parseInt(scanner.nextLine());
		int atemp = toi;
		int btemp = toi;
		int flag = 0;

		if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		}

	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int toi = Integer.parseInt(scanner.nextLine());
		int atemp = toi;
		int btemp = toi;
		int flag = 0;

		if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		}

	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int toi = Integer.parseInt(scanner.nextLine());
		int atemp = toi;
		int btemp = toi;
		int flag = 0;

		if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		}

	} main {

		Scanner scanner = new Scanner(System.in);

		int toi = Integer.parseInt(scanner.nextLine());
		int atemp = toi;
		int btemp = toi;
		int flag = 0;

		if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		}

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int toi = Integer.parseInt(scanner.nextLine()); toi Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner int atemp = toi; atemp toi int btemp = toi; btemp toi int flag = 0; flag 0 if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		} toi > 3 toi 3 {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		} if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			} toi % 4 == 0  || toi % 7 == 0 toi % 4 == 0 toi % 4 toi 4 0 toi % 7 == 0 toi % 7 toi 7 0 {
				System.out.println("Yes");
				flag = 1;
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" flag = 1 flag 1 {
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			} while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				} btemp > 3 && atemp > 3 btemp > 3 btemp 3 atemp > 3 atemp 3 {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				} atemp -= 4 atemp 4 btemp -= 7 btemp 7 if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					} atemp % 7 == 0 atemp % 7 atemp 7 0 {
						System.out.println("Yes");
						flag = 1;
						break;
					} System.out.println("Yes") System.out.println System.out System System.out "Yes" flag = 1 flag 1 break; if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					} btemp % 4 == 0 btemp % 4 btemp 4 0 {
						System.out.println("Yes");
						flag = 1;
						break;
					} System.out.println("Yes") System.out.println System.out System System.out "Yes" flag = 1 flag 1 break; if(flag == 0) {
				System.out.println("No");

			} flag == 0 flag 0 {
				System.out.println("No");

			} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("No");
		} 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 toi = Integer.parseInt(scanner.nextLine());
		int atemp = toi;
		int btemp = toi;
		int flag = 0;

		if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		}

	}
} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int toi = Integer.parseInt(scanner.nextLine());
		int atemp = toi;
		int btemp = toi;
		int flag = 0;

		if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		}

	}
} Main
import java.util.ArrayList;
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int toi = Integer.parseInt(scanner.nextLine());
		int atemp = toi;
		int btemp = toi;
		int flag = 0;

		if(toi > 3) {
			if(toi % 4 == 0  || toi % 7 == 0) {
				System.out.println("Yes");
				flag = 1;
			}else{
				while(btemp > 3 && atemp > 3) {
					atemp -= 4;
					btemp -= 7;
					if(atemp % 7 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
					if(btemp % 4 == 0) {
						System.out.println("Yes");
						flag = 1;
						break;
					}
				}
			}

			if(flag == 0) {
				System.out.println("No");

			}

		}else{
			System.out.println("No");
		}

	}
}