import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int d = scanner.nextInt();

		if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		}
		scanner.close();
	}

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

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int d = scanner.nextInt();

		if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		}
		scanner.close();
	}

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

		Scanner scanner = new Scanner(System.in);

		int d = scanner.nextInt();

		if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		}
		scanner.close();
	} main {

		Scanner scanner = new Scanner(System.in);

		int d = scanner.nextInt();

		if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		}
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int d = scanner.nextInt(); d scanner.nextInt() scanner.nextInt scanner if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		} (d % 4) == 0 || (d % 7) == 0 (d % 4) == 0 (d % 4) d 4 0 (d % 7) == 0 (d % 7) d 7 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		} while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			} (d = d -4) > 0 (d = d -4) d d -4 d 4 0 {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			} if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				} (d % 7) == 0 (d % 7) d 7 0 {
					System.out.println("Yes");
					break;
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if (d < 0) {
				System.out.println("No");
			} d < 0 d 0 {
				System.out.println("No");
			} System.out.println("No") System.out.println System.out System System.out "No" scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int d = scanner.nextInt();

		if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		}
		scanner.close();
	}

} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int d = scanner.nextInt();

		if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		}
		scanner.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int d = scanner.nextInt();

		if((d % 4) == 0 || (d % 7) == 0) {
			System.out.println("Yes");
		} else {
			while((d = d -4) > 0) {
				if ((d % 7) == 0) {
					System.out.println("Yes");
					break;
				}
			}
			if (d < 0) {
				System.out.println("No");
			}
		}
		scanner.close();
	}

}