import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		}
	}
	private static boolean isBuyPattern(int n) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		}
		return false;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		}
	}
	private static boolean isBuyPattern(int n) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		}
		return false;
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		} {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No") System.out.println System.out System System.out isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No" isBuyPattern(scanner.nextInt()) == true isBuyPattern(scanner.nextInt()) isBuyPattern scanner.nextInt() scanner.nextInt scanner true "Yes" "No" String[] args args private static boolean isBuyPattern(int n) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		}
		return false;
	} isBuyPattern {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		}
		return false;
	} for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		} {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		} for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
				if (4 * i + 7 * j == n) {
					return true;
				}
			} {
				if (4 * i + 7 * j == n) {
					return true;
				}
			} if (4 * i + 7 * j == n) {
					return true;
				} 4 * i + 7 * j == n 4 * i + 7 * j 4 * i 4 i 7 * j 7 j n {
					return true;
				} return true; true return false; false int n n public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		}
	}
	private static boolean isBuyPattern(int n) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		}
		return false;
	}
} public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		}
	}
	private static boolean isBuyPattern(int n) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		}
		return false;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			System.out.println(isBuyPattern(scanner.nextInt()) == true ? "Yes" : "No");
		}
	}
	private static boolean isBuyPattern(int n) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				if (4 * i + 7 * j == n) {
					return true;
				}
			}
		}
		return false;
	}
}