import java.util.HashMap;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int flag = 0;

		if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		}

		if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int flag = 0;

		if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		}

		if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int flag = 0;

		if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		}

		if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	} main {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int flag = 0;

		if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		}

		if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner int flag = 0; flag 0 if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		} n % 4 == 0|| n % 7 == 0 n % 4 == 0 n % 4 n 4 0 n % 7 == 0 n % 7 n 7 0 {
			flag++;
		} flag++ flag {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		} int a = n; a n int b = n; b n while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			} a > 3 a 3 {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			} a -= 4 a 4 if(a % 7 == 0) {
					flag ++;
					break;
				} a % 7 == 0 a % 7 a 7 0 {
					flag ++;
					break;
				} flag ++ flag break; while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			} b > 3 b 3 {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			} b -= 7 b 7 if(b % 4 == 0) {
					flag ++;
					break;
				} b % 4 == 0 b % 4 b 4 0 {
					flag ++;
					break;
				} flag ++ flag break; if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		} flag == 0 flag 0 {
		System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int flag = 0;

		if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		}

		if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int flag = 0;

		if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		}

		if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}
} Main
import java.util.HashMap;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int flag = 0;

		if(n % 4 == 0|| n % 7 == 0) {
			flag++;
		}else {
			int a = n;
			int b = n;
			while(a > 3) {
				a -= 4;
				if(a % 7 == 0) {
					flag ++;
					break;
				}
			}
			while(b > 3) {
				b -= 7;
				if(b % 4 == 0) {
					flag ++;
					break;
				}
			}
		}

		if(flag == 0) {
		System.out.println("No");
		}else {
			System.out.println("Yes");
		}
	}
}