import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int lim = N/4;
		int judge = 0;

		for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		}if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

} 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 lim = N/4;
		int judge = 0;

		for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		}if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int lim = N/4;
		int judge = 0;

		for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		}if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int lim = N/4;
		int judge = 0;

		for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		}if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int lim = N/4; lim N/4 N 4 int judge = 0; judge 0 for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		} int i=0; int i=0; i 0 i<=lim i lim i++ i++ i {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		} {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		} if((N-4*i)%7 == 0) {
				judge += 1;
			} (N-4*i)%7 == 0 (N-4*i)%7 (N-4*i) N 4*i 4 i 7 0 {
				judge += 1;
			} judge += 1 judge 1 if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} judge != 0 judge 0 {
			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 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int lim = N/4;
		int judge = 0;

		for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		}if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int lim = N/4;
		int judge = 0;

		for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		}if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

} 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 lim = N/4;
		int judge = 0;

		for(int i=0; i<=lim; i++) {
			if((N-4*i)%7 == 0) {
				judge += 1;
			}
		}if(judge != 0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

}
