import java.util.Scanner;

public class Main {

	/** ケーキの値段 */
	private static final int CAKE = 4;
	/** ドーナツの値段 */
	private static final int DOUGHNUT = 7;

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	/** ケーキの値段 */
	private static final int CAKE = 4;
	/** ドーナツの値段 */
	private static final int DOUGHNUT = 7;

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		}
	}
} Main /** ケーキの値段 */
	private static final int CAKE = 4; CAKE 4 /** ドーナツの値段 */
	private static final int DOUGHNUT = 7; DOUGHNUT 7 public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		} {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			} int i = 0; int i = 0; i 0 i <= n / CAKE i n / CAKE n CAKE i++ i++ i {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			} {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			} if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				} 0 == (n - CAKE * i) % DOUGHNUT 0 (n - CAKE * i) % DOUGHNUT (n - CAKE * i) n CAKE * i CAKE i DOUGHNUT {
					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" String[] args args public class Main {

	/** ケーキの値段 */
	private static final int CAKE = 4;
	/** ドーナツの値段 */
	private static final int DOUGHNUT = 7;

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		}
	}
} public class Main {

	/** ケーキの値段 */
	private static final int CAKE = 4;
	/** ドーナツの値段 */
	private static final int DOUGHNUT = 7;

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		}
	}
} Main
import java.util.Scanner;

public class Main {

	/** ケーキの値段 */
	private static final int CAKE = 4;
	/** ドーナツの値段 */
	private static final int DOUGHNUT = 7;

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = scanner.nextInt();
			for (int i = 0; i <= n / CAKE; i++) {
				if (0 == (n - CAKE * i) % DOUGHNUT) {
					System.out.println("Yes");
					return;
				}
			}
			System.out.println("No");
		}
	}
}
