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";

		for (int i = 0; i <= n; i += 4) {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		}
		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";

		for (int i = 0; i <= n; i += 4) {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		}
		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";

		for (int i = 0; i <= n; i += 4) {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "No";

		for (int i = 0; i <= n; i += 4) {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		}
		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" for (int i = 0; i <= n; i += 4) {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		} int i = 0; int i = 0; i 0 i <= n i n i += 4 i += 4 i 4 {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		} {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		} if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			} (n - i) % 7 == 0 (n - i) % 7 (n - i) n i 7 0 {
				ans = "Yes";
				break;
			} ans = "Yes" ans "Yes" break; 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";

		for (int i = 0; i <= n; i += 4) {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		}
		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";

		for (int i = 0; i <= n; i += 4) {
			if ((n - i) % 7 == 0) {
				ans = "Yes";
				break;
			}
		}
		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";

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