import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		new Solution();
	}

}

class Solution {

	private int n;

	public Solution() {
		this.setScanner();
		this.run();
	}

	private void setScanner() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		sc.close();
	}

	private void run() {

		if (n < 4) {
			System.out.println("No");
			return;
		}

		for (int cake = 0; cake <= 100 / 4; cake++) {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == 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 Solution();
	}

} Main public static void main(String[] args) {
		new Solution();
	} main {
		new Solution();
	} new Solution() String[] args args class Solution {

	private int n;

	public Solution() {
		this.setScanner();
		this.run();
	}

	private void setScanner() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		sc.close();
	}

	private void run() {

		if (n < 4) {
			System.out.println("No");
			return;
		}

		for (int cake = 0; cake <= 100 / 4; cake++) {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");
	}

} Solution private int n; n public Solution() {
		this.setScanner();
		this.run();
	} Solution {
		this.setScanner();
		this.run();
	} this.setScanner() this.setScanner this this.run() this.run this private void setScanner() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		sc.close();
	} setScanner {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc sc.close() sc.close sc private void run() {

		if (n < 4) {
			System.out.println("No");
			return;
		}

		for (int cake = 0; cake <= 100 / 4; cake++) {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");
	} run {

		if (n < 4) {
			System.out.println("No");
			return;
		}

		for (int cake = 0; cake <= 100 / 4; cake++) {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");
	} if (n < 4) {
			System.out.println("No");
			return;
		} n < 4 n 4 {
			System.out.println("No");
			return;
		} System.out.println("No") System.out.println System.out System System.out "No" return; for (int cake = 0; cake <= 100 / 4; cake++) {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			}
		} int cake = 0; int cake = 0; cake 0 cake <= 100 / 4 cake 100 / 4 100 4 cake++ cake++ cake {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			}
		} {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			}
		} for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			} int donuts = 0; int donuts = 0; donuts 0 donuts <= 100 / 7 donuts 100 / 7 100 7 donuts++ donuts++ donuts {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			} {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			} if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				} 4 * cake + 7 * donuts == n 4 * cake + 7 * donuts 4 * cake 4 cake 7 * donuts 7 donuts 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" public class Main {

	public static void main(String[] args) {
		new Solution();
	}

} public class Main {

	public static void main(String[] args) {
		new Solution();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		new Solution();
	}

}

class Solution {

	private int n;

	public Solution() {
		this.setScanner();
		this.run();
	}

	private void setScanner() {
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		sc.close();
	}

	private void run() {

		if (n < 4) {
			System.out.println("No");
			return;
		}

		for (int cake = 0; cake <= 100 / 4; cake++) {
			for (int donuts = 0; donuts <= 100 / 7; donuts++) {
				if (4 * cake + 7 * donuts == n) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");
	}

}