

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String output = "No"; output "No" Integer nInteger = new Integer(scanner.next()); nInteger new Integer(scanner.next()) for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		} int i= 0,iLen = (nInteger/7+1); int i= 0 i 0 iLen = (nInteger/7+1); iLen (nInteger/7+1) nInteger/7 nInteger 7 1 i < iLen i iLen i++ i++ i {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		} {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		} for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			} int j = 0,jLen = ((nInteger-i*7)/4)+1; int j = 0 j 0 jLen = ((nInteger-i*7)/4)+1; jLen ((nInteger-i*7)/4)+1 ((nInteger-i*7)/4) (nInteger-i*7) nInteger i*7 i 7 4 1 j<jLen j jLen j++ j++ j {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			} {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			} if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				} nInteger == (i*7+j*4) nInteger (i*7+j*4) i*7 i 7 j*4 j 4 {
					output = "Yes";
					break;
				} output = "Yes" output "Yes" break; System.out.println(output) System.out.println System.out System System.out output scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	}
} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	}
}
