import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
		return;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
		return;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
		return;
	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
		return;
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		} int i2 = 0; int i2 = 0; i2 0 i2 <= 14 i2 14 i2++ i2++ i2 {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		} {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		} for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			} int i1 = 0; int i1 = 0; i1 0 i1 <= 25 i1 25 i1++ i1++ i1 {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			} {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			} if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				} N == (4 * i1 + 7 * i2) N (4 * i1 + 7 * i2) 4 * i1 4 i1 7 * i2 7 i2 {
					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" return; String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
		return;
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
		return;
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		for (int i2 = 0; i2 <= 14; i2++) {
			for (int i1 = 0; i1 <= 25; i1++) {
				if (N == (4 * i1 + 7 * i2)) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
		return;
	}
}