
public class Main {
	public static void main(String[] args) {
		int N = new java.util.Scanner(System.in).nextInt();
		int temp = 0;
		boolean possible = false;
		final int MAX_A = N / 4;
		final int MAX_B = N / 7;

		for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		}
		if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) {
		int N = new java.util.Scanner(System.in).nextInt();
		int temp = 0;
		boolean possible = false;
		final int MAX_A = N / 4;
		final int MAX_B = N / 7;

		for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		}
		if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		int N = new java.util.Scanner(System.in).nextInt();
		int temp = 0;
		boolean possible = false;
		final int MAX_A = N / 4;
		final int MAX_B = N / 7;

		for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		}
		if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		int N = new java.util.Scanner(System.in).nextInt();
		int temp = 0;
		boolean possible = false;
		final int MAX_A = N / 4;
		final int MAX_B = N / 7;

		for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		}
		if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} int N = new java.util.Scanner(System.in).nextInt(); N new java.util.Scanner(System.in).nextInt() new java.util.Scanner(System.in).nextInt new java.util.Scanner(System.in) int temp = 0; temp 0 boolean possible = false; possible false final int MAX_A = N / 4; MAX_A N / 4 N 4 final int MAX_B = N / 7; MAX_B N / 7 N 7 for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		} int i = 0; int i = 0; i 0 i <= MAX_A i MAX_A ++i ++i i {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		} {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		} for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			} int j = 0; int j = 0; j 0 j <= MAX_B j MAX_B ++j ++j j {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			} {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			} temp = 4 * i + 7 * j temp 4 * i + 7 * j 4 * i 4 i 7 * j 7 j if (temp == N) {
					possible = true;
					break;
				} temp == N temp N {
					possible = true;
					break;
				} possible = true possible true break; if (possible) {
				break;
			} possible {
				break;
			} break; if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} possible {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {
	public static void main(String[] args) {
		int N = new java.util.Scanner(System.in).nextInt();
		int temp = 0;
		boolean possible = false;
		final int MAX_A = N / 4;
		final int MAX_B = N / 7;

		for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		}
		if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {
	public static void main(String[] args) {
		int N = new java.util.Scanner(System.in).nextInt();
		int temp = 0;
		boolean possible = false;
		final int MAX_A = N / 4;
		final int MAX_B = N / 7;

		for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		}
		if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main

public class Main {
	public static void main(String[] args) {
		int N = new java.util.Scanner(System.in).nextInt();
		int temp = 0;
		boolean possible = false;
		final int MAX_A = N / 4;
		final int MAX_B = N / 7;

		for (int i = 0; i <= MAX_A; ++i) {
			for (int j = 0; j <= MAX_B; ++j) {
				temp = 4 * i + 7 * j;
				if (temp == N) {
					possible = true;
					break;
				}
			}
			if (possible) {
				break;
			}
		}
		if(possible) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
