import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().solve(new Scanner(System.in));
	}
	
	public void solve(Scanner sc) {
		int n = Integer.parseInt(sc.next());
		
		if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		}
		
		for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		new Main().solve(new Scanner(System.in));
	}
	
	public void solve(Scanner sc) {
		int n = Integer.parseInt(sc.next());
		
		if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		}
		
		for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
} Main public static void main(String[] args) {
		new Main().solve(new Scanner(System.in));
	} main {
		new Main().solve(new Scanner(System.in));
	} new Main().solve(new Scanner(System.in)) new Main().solve new Main() new Scanner(System.in) String[] args args public void solve(Scanner sc) {
		int n = Integer.parseInt(sc.next());
		
		if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		}
		
		for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	} solve {
		int n = Integer.parseInt(sc.next());
		
		if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		}
		
		for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	} int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		} n % 7 == 0 || n % 4 == 0 n % 7 == 0 n % 7 n 7 0 n % 4 == 0 n % 4 n 4 0 {
			System.out.println("Yes");
			return;
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		} int i=0; int i=0; i 0 i*7 <= n i*7 i 7 n i++ i++ i {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		} {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		} for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			} int j=0; int j=0; j 0 j*4+i*7 <= n j*4+i*7 j*4 j 4 i*7 i 7 n j++ j++ j {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			} {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			} if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				} j*4+i*7==n j*4+i*7 j*4 j 4 i*7 i 7 n {
					System.out.println("Yes");
					return;
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" Scanner sc sc public class Main {
	public static void main(String[] args) {
		new Main().solve(new Scanner(System.in));
	}
	
	public void solve(Scanner sc) {
		int n = Integer.parseInt(sc.next());
		
		if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		}
		
		for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
} public class Main {
	public static void main(String[] args) {
		new Main().solve(new Scanner(System.in));
	}
	
	public void solve(Scanner sc) {
		int n = Integer.parseInt(sc.next());
		
		if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		}
		
		for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().solve(new Scanner(System.in));
	}
	
	public void solve(Scanner sc) {
		int n = Integer.parseInt(sc.next());
		
		if(n % 7 == 0 || n % 4 == 0) {
			System.out.println("Yes");
			return;
		}
		
		for(int i=0; i*7 <= n; i++) {
			for(int j=0; j*4+i*7 <= n; j++) {
				if(j*4+i*7==n) {
					System.out.println("Yes");
					return;
				}
			}
		}
		System.out.println("No");
	}
}
