import java.util.Scanner;

public class Main {

	static void show(boolean b){
		if(b) System.out.println("Yes");
		else System.out.println("No");
	}

	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        boolean result = false;

        //Number of total amounts
        int n = sc.nextInt();

        if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        }

        show(result);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	static void show(boolean b){
		if(b) System.out.println("Yes");
		else System.out.println("No");
	}

	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        boolean result = false;

        //Number of total amounts
        int n = sc.nextInt();

        if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        }

        show(result);
	}
} Main static void show(boolean b){
		if(b) System.out.println("Yes");
		else System.out.println("No");
	} show {
		if(b) System.out.println("Yes");
		else System.out.println("No");
	} if(b) System.out.println("Yes");
		else System.out.println("No"); b System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" boolean b b public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        boolean result = false;

        //Number of total amounts
        int n = sc.nextInt();

        if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        }

        show(result);
	} main {
        Scanner sc = new Scanner(System.in);

        boolean result = false;

        //Number of total amounts
        int n = sc.nextInt();

        if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        }

        show(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean result = false; result false int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        } n % 4 == 0 || n % 7 == 0 n % 4 == 0 n % 4 n 4 0 n % 7 == 0 n % 7 n 7 0 {
        	result = true;
        } result = true result true {
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        } int x = 1; x 1 while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	} 4*x < n 4*x 4 x n {
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	} if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		} (n - 4*x) % 7 == 0 (n - 4*x) % 7 (n - 4*x) n 4*x 4 x 7 0 {
        			result = true;
        			break;
        		} result = true result true break; x++ x show(result) show result String[] args args public class Main {

	static void show(boolean b){
		if(b) System.out.println("Yes");
		else System.out.println("No");
	}

	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        boolean result = false;

        //Number of total amounts
        int n = sc.nextInt();

        if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        }

        show(result);
	}
} public class Main {

	static void show(boolean b){
		if(b) System.out.println("Yes");
		else System.out.println("No");
	}

	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        boolean result = false;

        //Number of total amounts
        int n = sc.nextInt();

        if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        }

        show(result);
	}
} Main
import java.util.Scanner;

public class Main {

	static void show(boolean b){
		if(b) System.out.println("Yes");
		else System.out.println("No");
	}

	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        boolean result = false;

        //Number of total amounts
        int n = sc.nextInt();

        if(n % 4 == 0 || n % 7 == 0){
        	result = true;
        }
        else{
        	int x = 1;
        	while(4*x < n){
        		if((n - 4*x) % 7 == 0){
        			result = true;
        			break;
        		}
        		x++;
        	}
        }

        show(result);
	}
}