import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		boolean judge = false;
		for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		}
		if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		boolean judge = false;
		for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		}
		if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		boolean judge = false;
		for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		}
		if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		boolean judge = false;
		for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		}
		if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = n; m n boolean judge = false; judge false for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		} int i = 0; int i = 0; i 0 m >= 4 m 4 i++ i++ i {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		} {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		} m = n - (4 * i) m n - (4 * i) n (4 * i) 4 i if(m % 7 == 0) {
				judge = true;
				break;
			} m % 7 == 0 m % 7 m 7 0 {
				judge = true;
				break;
			} judge = true judge true break; if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} judge {
			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" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		boolean judge = false;
		for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		}
		if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		boolean judge = false;
		for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		}
		if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = n;
		boolean judge = false;
		for(int i = 0; m >= 4; i++) {
			m = n - (4 * i);
			if(m % 7 == 0) {
				judge = true;
				break;
			}
		}
		if(judge) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

}
