import java.io.IOException;
import java.util.Scanner;

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

		int n = sc.nextInt();

		String ans = "No";

		outer:
		for (int i = 0; i * 4 <= n; i++) {
			for (int j = 0; i * 4 + j * 7 <= n; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break outer;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		String ans = "No";

		outer:
		for (int i = 0; i * 4 <= n; i++) {
			for (int j = 0; i * 4 + j * 7 <= n; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break outer;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} Main public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		String ans = "No";

		outer:
		for (int i = 0; i * 4 <= n; i++) {
			for (int j = 0; i * 4 + j * 7 <= n; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break outer;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		String ans = "No";

		outer:
		for (int i = 0; i * 4 <= n; i++) {
			for (int j = 0; i * 4 + j * 7 <= n; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break outer;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String ans = "No"; ans "No" System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		String ans = "No";

		outer:
		for (int i = 0; i * 4 <= n; i++) {
			for (int j = 0; i * 4 + j * 7 <= n; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break outer;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		String ans = "No";

		outer:
		for (int i = 0; i * 4 <= n; i++) {
			for (int j = 0; i * 4 + j * 7 <= n; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break outer;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
} Main
import java.io.IOException;
import java.util.Scanner;

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

		int n = sc.nextInt();

		String ans = "No";

		outer:
		for (int i = 0; i * 4 <= n; i++) {
			for (int j = 0; i * 4 + j * 7 <= n; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break outer;
				}
			}
		}
		System.out.println(ans);
		sc.close();
	}
}
