import java.util.Scanner;

public class Main {

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

		int n;
		int count = 0;
		n = sc.nextInt();

		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		}
		if (count != 1) {
			System.out.println("No");
		}
		sc.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

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

		int n;
		int count = 0;
		n = sc.nextInt();

		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		}
		if (count != 1) {
			System.out.println("No");
		}
		sc.close();
	}

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

		int n;
		int count = 0;
		n = sc.nextInt();

		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		}
		if (count != 1) {
			System.out.println("No");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int n;
		int count = 0;
		n = sc.nextInt();

		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		}
		if (count != 1) {
			System.out.println("No");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n; n int count = 0; count 0 n = sc.nextInt() n sc.nextInt() sc.nextInt sc for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		} int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		} {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		} for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			} int j = 0; int j = 0; j 0 j < n j n ++j ++j j {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			} {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			} if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				} n == i * 4 + j * 7 n i * 4 + j * 7 i * 4 i 4 j * 7 j 7 {
					System.out.println("Yes");
					count = 1;
					break;
				} System.out.println("Yes") System.out.println System.out System System.out "Yes" count = 1 count 1 break; if (count == 1) {
				break;
			} count == 1 count 1 {
				break;
			} break; if (count != 1) {
			System.out.println("No");
		} count != 1 count 1 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" sc.close() sc.close sc String[] args args public class Main {

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

		int n;
		int count = 0;
		n = sc.nextInt();

		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		}
		if (count != 1) {
			System.out.println("No");
		}
		sc.close();
	}

} public class Main {

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

		int n;
		int count = 0;
		n = sc.nextInt();

		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		}
		if (count != 1) {
			System.out.println("No");
		}
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

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

		int n;
		int count = 0;
		n = sc.nextInt();

		for (int i = 0; i < n; ++i) {
			for (int j = 0; j < n; ++j) {
				if (n == i * 4 + j * 7) {
					System.out.println("Yes");
					count = 1;
					break;
				}
			}
			if (count == 1) {
				break;
			}
		}
		if (count != 1) {
			System.out.println("No");
		}
		sc.close();
	}

}
