import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		return;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		return;
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		return;
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		return;
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		} {
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		} if ((n-7*i) < 0){
				break;
			} (n-7*i) < 0 (n-7*i) n 7*i 7 i 0 {
				break;
			} break; if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			} (n-7*i) % 4 == 0 (n-7*i) % 4 (n-7*i) n 7*i 7 i 4 0 {
				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" return; String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		return;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		return;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());

		for (int i=0; i<n; i++){
			if ((n-7*i) < 0){
				break;
			}

			if ((n-7*i) % 4 == 0){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
		return;
	}
}