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();
		
		for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		}
		System.out.print("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();
		
		for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		}
		System.out.print("No"); 
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		scan.close();
		
		for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		}
		System.out.print("No"); 
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		scan.close();
		
		for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		}
		System.out.print("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 for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					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++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		} {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		} for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			} int j = 0 ; int j = 0 ; j 0 j <= N / 7 j N / 7 N 7 j++ j++ j {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			} {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			} int ans = i * 4 + j * 7; ans i * 4 + j * 7 i * 4 i 4 j * 7 j 7 if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				} ans == N ans N {
					System.out.print("Yes"); 
					return;
				} System.out.print("Yes") System.out.print System.out System System.out "Yes" return; if (ans > N) {
					break;
				} ans > N ans N {
					break;
				} break; System.out.print("No") System.out.print 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();
		
		for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		}
		System.out.print("No"); 
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		scan.close();
		
		for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		}
		System.out.print("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();
		
		for (int i = 0 ; i <= N / 4 ; i++) {
			for (int j = 0 ; j <= N / 7 ; j++) {
				int ans = i * 4 + j * 7;
				if (ans == N) {
					System.out.print("Yes"); 
					return;
				} else if (ans > N) {
					break;
				}
			}
		}
		System.out.print("No"); 
	}
}
