import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		String ans = "No";
		for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		String ans = "No";
		for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} Main InputStream in = System.in; in System.in System System.in PrintStream out = System.out; out System.out System System.out public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		String ans = "No";
		for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		}

		out.println(ans);

		sc.close();

	} _main {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		String ans = "No";
		for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		}

		out.println(ans);

		sc.close();

	} Scanner sc = new Scanner(in); sc new Scanner(in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String ans = "No"; ans "No" for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		} int i=0; int i=0; i 0 i<=N/7 i N/7 N 7 i++ i++ i {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		} {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		} if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			} (N-(i*7)) % 4 == 0 (N-(i*7)) % 4 (N-(i*7)) N (i*7) i 7 4 0 {
				ans = "Yes";
				break;
			} ans = "Yes" ans "Yes" break; out.println(ans) out.println out ans sc.close() sc.close sc String[] args args public static void main(String[] args) {
		new Main()._main(args);
	} main {
		new Main()._main(args);
	} new Main()._main(args) new Main()._main new Main() args String[] args args public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		String ans = "No";
		for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		String ans = "No";
		for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int N = sc.nextInt();

		String ans = "No";
		for(int i=0;i<=N/7;i++) {
			if((N-(i*7)) % 4 == 0) {
				ans = "Yes";
				break;
			}
		}

		out.println(ans);

		sc.close();

	}

	public static void main(String[] args) {
		new Main()._main(args);
	}

}
