import java.util.Scanner;

class Main{

	public static void main(String[] args) {


		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();


		if(N < 4){
			System.out.println("No");
		}else{

			boolean flag = check(false,N);
			if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			}
		}


	}


	static	boolean check(boolean flag,int N){
		if(N == 0){
			return flag = true;
		}

		if(N < 0){
			return flag;
		}

		flag =  check(flag,N-4);
		flag = check(flag, N-7);

		return flag;


	}







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

	public static void main(String[] args) {


		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();


		if(N < 4){
			System.out.println("No");
		}else{

			boolean flag = check(false,N);
			if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			}
		}


	}


	static	boolean check(boolean flag,int N){
		if(N == 0){
			return flag = true;
		}

		if(N < 0){
			return flag;
		}

		flag =  check(flag,N-4);
		flag = check(flag, N-7);

		return flag;


	}







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


		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();


		if(N < 4){
			System.out.println("No");
		}else{

			boolean flag = check(false,N);
			if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			}
		}


	} main {


		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();


		if(N < 4){
			System.out.println("No");
		}else{

			boolean flag = check(false,N);
			if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			}
		}


	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan if(N < 4){
			System.out.println("No");
		}else{

			boolean flag = check(false,N);
			if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			}
		} N < 4 N 4 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {

			boolean flag = check(false,N);
			if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			}
		} boolean flag = check(false,N); flag check(false,N) check false N if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			} flag {
				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 static	boolean check(boolean flag,int N){
		if(N == 0){
			return flag = true;
		}

		if(N < 0){
			return flag;
		}

		flag =  check(flag,N-4);
		flag = check(flag, N-7);

		return flag;


	} check {
		if(N == 0){
			return flag = true;
		}

		if(N < 0){
			return flag;
		}

		flag =  check(flag,N-4);
		flag = check(flag, N-7);

		return flag;


	} if(N == 0){
			return flag = true;
		} N == 0 N 0 {
			return flag = true;
		} return flag = true; flag = true flag true if(N < 0){
			return flag;
		} N < 0 N 0 {
			return flag;
		} return flag; flag flag =  check(flag,N-4) flag check(flag,N-4) check flag N-4 N 4 flag = check(flag, N-7) flag check(flag, N-7) check flag N-7 N 7 return flag; flag boolean flag flag int N N
import java.util.Scanner;

class Main{

	public static void main(String[] args) {


		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();


		if(N < 4){
			System.out.println("No");
		}else{

			boolean flag = check(false,N);
			if(flag){
				System.out.println("Yes");

			}else{
				System.out.println("No");
			}
		}


	}


	static	boolean check(boolean flag,int N){
		if(N == 0){
			return flag = true;
		}

		if(N < 0){
			return flag;
		}

		flag =  check(flag,N-4);
		flag = check(flag, N-7);

		return flag;


	}







}