import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n= scan.nextInt();

		scan.close();
		int check=0;
		for(int i=0;i<=n/4;i++) {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		}
		if(check==0)System.out.println("No");
	}

} 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();

		scan.close();
		int check=0;
		for(int i=0;i<=n/4;i++) {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		}
		if(check==0)System.out.println("No");
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n= scan.nextInt();

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

		scan.close();
		int check=0;
		for(int i=0;i<=n/4;i++) {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		}
		if(check==0)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 scan.close() scan.close scan int check=0; check 0 for(int i=0;i<=n/4;i++) {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		} int i=0; int i=0; i 0 i<=n/4 i n/4 n 4 i++ i++ i {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		} {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		} for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			} int j=0; int j=0; j 0 j<=n/7 j n/7 n 7 j++ j++ j {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			} {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			} if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				} n==4*i+7*j n 4*i+7*j 4*i 4 i 7*j 7 j {
					check=1;
					System.out.println("Yes");
					break;
				} check=1 check 1 System.out.println("Yes") System.out.println System.out System System.out "Yes" break; if(check==1)break; check==1 check 1 break; if(check==0)System.out.println("No"); check==0 check 0 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 scan = new Scanner(System.in);
		int n= scan.nextInt();

		scan.close();
		int check=0;
		for(int i=0;i<=n/4;i++) {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		}
		if(check==0)System.out.println("No");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n= scan.nextInt();

		scan.close();
		int check=0;
		for(int i=0;i<=n/4;i++) {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		}
		if(check==0)System.out.println("No");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n= scan.nextInt();

		scan.close();
		int check=0;
		for(int i=0;i<=n/4;i++) {
			for(int j=0;j<=n/7;j++) {
				if(n==4*i+7*j) {
					check=1;
					System.out.println("Yes");
					break;
				}
			}
			if(check==1)break;
		}
		if(check==0)System.out.println("No");
	}

}