import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean hasPattern = false;
		for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		}
		System.out.println(hasPattern ? "Yes" : "No");
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean hasPattern = false;
		for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		}
		System.out.println(hasPattern ? "Yes" : "No");
		sc.close();
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean hasPattern = false;
		for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		}
		System.out.println(hasPattern ? "Yes" : "No");
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean hasPattern = false;
		for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		}
		System.out.println(hasPattern ? "Yes" : "No");
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean hasPattern = false; hasPattern false for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		} int i = 0; int i = 0; i 0 i <= N && hasPattern == false i <= N i N hasPattern == false hasPattern false i += 4 i += 4 i 4 {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		} {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		} for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			} int j = 0; int j = 0; j 0 j <= N && hasPattern == false j <= N j N hasPattern == false hasPattern false j += 7 j += 7 j 7 {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			} {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			} int sum = i + j; sum i + j i j if (sum == N)
					hasPattern = true; sum == N sum N hasPattern = true hasPattern true System.out.println(hasPattern ? "Yes" : "No") System.out.println System.out System System.out hasPattern ? "Yes" : "No" hasPattern "Yes" "No" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean hasPattern = false;
		for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		}
		System.out.println(hasPattern ? "Yes" : "No");
		sc.close();
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean hasPattern = false;
		for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		}
		System.out.println(hasPattern ? "Yes" : "No");
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean hasPattern = false;
		for (int i = 0; i <= N && hasPattern == false; i += 4) {
			for (int j = 0; j <= N && hasPattern == false; j += 7) {
				int sum = i + j;
				if (sum == N)
					hasPattern = true;
			}
		}
		System.out.println(hasPattern ? "Yes" : "No");
		sc.close();
	}
}