import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		
		String output = "No";
		
		while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		}
		
		System.out.println(output);
	}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		
		String output = "No";
		
		while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		}
		
		System.out.println(output);
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		
		String output = "No";
		
		while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		}
		
		System.out.println(output);
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		
		String output = "No";
		
		while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		}
		
		System.out.println(output);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner String output = "No"; output "No" while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		} N>=0 N 0 {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		} if(N%4 == 0) {
				output = "Yes";
			} N%4 == 0 N%4 N 4 0 {
				output = "Yes";
			} output = "Yes" output "Yes" N = N-7 N N-7 N 7 System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		
		String output = "No";
		
		while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		}
		
		System.out.println(output);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		
		String output = "No";
		
		while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		}
		
		System.out.println(output);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		
		String output = "No";
		
		while(N>=0) {
			if(N%4 == 0) {
				output = "Yes";
			}
			N = N-7;
		}
		
		System.out.println(output);
	}

}