import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		final int CAKE = 4;
		final int DONUT = 7;

		while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		final int CAKE = 4;
		final int DONUT = 7;

		while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		final int CAKE = 4;
		final int DONUT = 7;

		while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ

		final int CAKE = 4;
		final int DONUT = 7;

		while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	} final int CAKE = 4; CAKE 4 final int DONUT = 7; DONUT 7 while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} sc.hasNext() sc.hasNext sc {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} int budget = sc.nextInt(); budget sc.nextInt() sc.nextInt sc boolean flag = false; flag false for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			} int i=0; int i=0; i 0 i*CAKE<=budget i*CAKE i CAKE budget i++ i++ i {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			} {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			} for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				} int j=0; int j=0; j 0 i*CAKE+j*DONUT<=budget i*CAKE+j*DONUT i*CAKE i CAKE j*DONUT j DONUT budget j++ j++ j {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				} {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				} if (i*CAKE+j*DONUT == budget) {
						flag = true;
					} i*CAKE+j*DONUT == budget i*CAKE+j*DONUT i*CAKE i CAKE j*DONUT j DONUT budget {
						flag = true;
					} flag = true flag true if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			} flag {
				System.out.println("Yes");
			} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
				System.out.println("No");
			} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		final int CAKE = 4;
		final int DONUT = 7;

		while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}

} public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		final int CAKE = 4;
		final int DONUT = 7;

		while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		final int CAKE = 4;
		final int DONUT = 7;

		while (sc.hasNext()) {
			int budget = sc.nextInt();
			boolean flag = false;

			for (int i=0; i*CAKE<=budget; i++) {
				for (int j=0; i*CAKE+j*DONUT<=budget; j++) {
					if (i*CAKE+j*DONUT == budget) {
						flag = true;
					}
				}
			}
			if (flag) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}

}
