
import java.util.Iterator;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int max4 = n / 4;
		int max7 = n / 7;
		
		String ans = "No";
		for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		}
		System.out.println(ans);
	}
} import java.util.Iterator; Iterator java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int max4 = n / 4;
		int max7 = n / 7;
		
		String ans = "No";
		for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int max4 = n / 4;
		int max7 = n / 7;
		
		String ans = "No";
		for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		}
		System.out.println(ans);
	} main {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int max4 = n / 4;
		int max7 = n / 7;
		
		String ans = "No";
		for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		}
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int max4 = n / 4; max4 n / 4 n 4 int max7 = n / 7; max7 n / 7 n 7 String ans = "No"; ans "No" for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		} int i = 0; int i = 0; i 0 i <= max4 i max4 i++ i++ i {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		} {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		} for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			} int j = 0; int j = 0; j 0 j <= max7 j max7 j++ j++ j {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			} {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			} if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				} i * 4 + j * 7 == n i * 4 + j * 7 i * 4 i 4 j * 7 j 7 n {
					ans = "Yes";
					break;
				} ans = "Yes" ans "Yes" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int max4 = n / 4;
		int max7 = n / 7;
		
		String ans = "No";
		for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int max4 = n / 4;
		int max7 = n / 7;
		
		String ans = "No";
		for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		}
		System.out.println(ans);
	}
} Main

import java.util.Iterator;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int max4 = n / 4;
		int max7 = n / 7;
		
		String ans = "No";
		for (int i = 0; i <= max4; i++) {
			for (int j = 0; j <= max7; j++) {
				if (i * 4 + j * 7 == n) {
					ans = "Yes";
					break;
				}
			}
			
		}
		System.out.println(ans);
	}
}