import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		}

		for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");

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

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		}

		for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");

	}
} Main @SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		}

		for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");

	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		}

		for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		} n % 4 == 0 || n % 7 == 0 n % 4 == 0 n % 4 n 4 0 n % 7 == 0 n % 7 n 7 0 {
			System.out.println("Yes");
			return;
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		} int i = 4; int i = 4; i 4 i <= 100 i 100 i += 4 i += 4 i 4 {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		} {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		} for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			} int j = 7; int j = 7; j 7 j <= 100 j 100 j += 7 j += 7 j 7 {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			} {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			} if (i + j == n) {
					System.out.println("Yes");
					return;
				} i + j == n i + j i j n {
					System.out.println("Yes");
					return;
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" String args[] args public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		}

		for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");

	}
} public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		}

		for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");

	}
} Main
import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		if (n % 4 == 0 || n % 7 == 0) {
			System.out.println("Yes");
			return;
		}

		for (int i = 4; i <= 100; i += 4) {
			for (int j = 7; j <= 100; j += 7) {
				if (i + j == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");

	}
}
