import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		int sum = 0;

		boolean flag = false;

		for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		}

		if(flag == true) {

			System.out.println("Yes");
		}else {

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

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		int sum = 0;

		boolean flag = false;

		for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		}

		if(flag == true) {

			System.out.println("Yes");
		}else {

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

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		int sum = 0;

		boolean flag = false;

		for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		}

		if(flag == true) {

			System.out.println("Yes");
		}else {

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

	} main {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		int sum = 0;

		boolean flag = false;

		for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		}

		if(flag == true) {

			System.out.println("Yes");
		}else {

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

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int sum = 0; sum 0 boolean flag = false; flag false for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		} int i=0; int i=0; i 0 i<N+1 i N+1 N 1 i++ i++ i {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		} {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		} for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			} int j=0; int j=0; j 0 j<N-i+1 j N-i+1 N-i N i 1 j++ j++ j {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			} {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			} sum = 4*i + 7*j sum 4*i + 7*j 4*i 4 i 7*j 7 j if(sum == N) {

					flag = true;

				} sum == N sum N {

					flag = true;

				} flag = true flag true if(flag == true) {

			System.out.println("Yes");
		}else {

			System.out.println("No");
		} flag == true flag true {

			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {

			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		int sum = 0;

		boolean flag = false;

		for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		}

		if(flag == true) {

			System.out.println("Yes");
		}else {

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

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		int sum = 0;

		boolean flag = false;

		for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		}

		if(flag == true) {

			System.out.println("Yes");
		}else {

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

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();

		int sum = 0;

		boolean flag = false;

		for(int i=0;i<N+1;i++) {

			for(int j=0;j<N-i+1;j++) {

				sum = 4*i + 7*j;

				if(sum == N) {

					flag = true;

				}

			}

		}

		if(flag == true) {

			System.out.println("Yes");
		}else {

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

	}

}
