import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		}
	}

	
    
    static String solve(int n) {
    	for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	}
    	return "No";
    }
    
    
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) {
		try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		}
	}

	
    
    static String solve(int n) {
    	for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	}
    	return "No";
    }
    
    
} Main public static void main(String[] args) {
		try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		}
	} main {
		try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		}
	} try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		} catch (Exception e) {
			
		} Exception e {
			
		} {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)) BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) final String s = reader.readLine(); s reader.readLine() reader.readLine reader int n = Integer.parseInt(s); n Integer.parseInt(s) Integer.parseInt Integer s System.out.println(solve(n)) System.out.println System.out System System.out solve(n) solve n String[] args args static String solve(int n) {
    	for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	}
    	return "No";
    } solve {
    	for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	}
    	return "No";
    } for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	} int i = 0; int i = 0; i 0 i < 26 i 26 i++ i++ i {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	} {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	} for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		} int j = 0; int j = 0; j 0 j < 20 j 20 j++ j++ j {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		} {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		} if (4*i + 7*j == n) {
    				return "Yes";
    			} 4*i + 7*j == n 4*i + 7*j 4*i 4 i 7*j 7 j n {
    				return "Yes";
    			} return "Yes"; "Yes" return "No"; "No" int n n public class Main {

	public static void main(String[] args) {
		try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		}
	}

	
    
    static String solve(int n) {
    	for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	}
    	return "No";
    }
    
    
} public class Main {

	public static void main(String[] args) {
		try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		}
	}

	
    
    static String solve(int n) {
    	for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	}
    	return "No";
    }
    
    
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {
		try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
			final String s = reader.readLine();
			int n = Integer.parseInt(s);
			System.out.println(solve(n));
			
		}catch (Exception e) {
			
		}
	}

	
    
    static String solve(int n) {
    	for (int i = 0; i < 26; i++) {
    		for (int j = 0; j < 20; j++) {
    			if (4*i + 7*j == n) {
    				return "Yes";
    			}
    		}
    	}
    	return "No";
    }
    
    
}
