import java.lang.reflect.Array;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int N = sc.nextInt();
		boolean ans = false;
		
		if (N % 4 == 0) {
			ans = true;
		}
		if (N % 7 == 0) {
			ans = true;
		}
		if (ans) {
			System.out.println("Yes");
			return;
		}
		int[] four = new int[N];
		for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		}
		int[] seven = new int[N];
		for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		}
		for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		}
		if(ans) {
			System.out.println("Yes");						
		} else {
			System.out.println("No");						
		}
	}	
} import java.lang.reflect.Array; Array java.lang.reflect import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int N = sc.nextInt();
		boolean ans = false;
		
		if (N % 4 == 0) {
			ans = true;
		}
		if (N % 7 == 0) {
			ans = true;
		}
		if (ans) {
			System.out.println("Yes");
			return;
		}
		int[] four = new int[N];
		for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		}
		int[] seven = new int[N];
		for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		}
		for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		}
		if(ans) {
			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();
		boolean ans = false;
		
		if (N % 4 == 0) {
			ans = true;
		}
		if (N % 7 == 0) {
			ans = true;
		}
		if (ans) {
			System.out.println("Yes");
			return;
		}
		int[] four = new int[N];
		for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		}
		int[] seven = new int[N];
		for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		}
		for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		}
		if(ans) {
			System.out.println("Yes");						
		} else {
			System.out.println("No");						
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int N = sc.nextInt();
		boolean ans = false;
		
		if (N % 4 == 0) {
			ans = true;
		}
		if (N % 7 == 0) {
			ans = true;
		}
		if (ans) {
			System.out.println("Yes");
			return;
		}
		int[] four = new int[N];
		for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		}
		int[] seven = new int[N];
		for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		}
		for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		}
		if(ans) {
			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 boolean ans = false; ans false if (N % 4 == 0) {
			ans = true;
		} N % 4 == 0 N % 4 N 4 0 {
			ans = true;
		} ans = true ans true if (N % 7 == 0) {
			ans = true;
		} N % 7 == 0 N % 7 N 7 0 {
			ans = true;
		} ans = true ans true if (ans) {
			System.out.println("Yes");
			return;
		} ans {
			System.out.println("Yes");
			return;
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; int[] four = new int[N]; four new int[N] N for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		} {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		} if (4 * i > N) {
				break;
			} 4 * i > N 4 * i 4 i N {
				break;
			} break; four[i] = 4 * i four[i] four i 4 * i 4 i int[] seven = new int[N]; seven new int[N] N for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		} {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		} if (7 * i > N) {
				break;
			} 7 * i > N 7 * i 7 i N {
				break;
			} break; seven[i] = 7 * i seven[i] seven i 7 * i 7 i for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		} {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		} for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			} int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			} {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			} if (four[i]+seven[j]==N) {
					ans = true;
					break;
				} four[i]+seven[j]==N four[i]+seven[j] four[i] four i seven[j] seven j N {
					ans = true;
					break;
				} ans = true ans true break; if(ans){
				break;
			} ans {
				break;
			} break; if(ans) {
			System.out.println("Yes");						
		} else {
			System.out.println("No");						
		} ans {
			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();
		boolean ans = false;
		
		if (N % 4 == 0) {
			ans = true;
		}
		if (N % 7 == 0) {
			ans = true;
		}
		if (ans) {
			System.out.println("Yes");
			return;
		}
		int[] four = new int[N];
		for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		}
		int[] seven = new int[N];
		for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		}
		for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		}
		if(ans) {
			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();
		boolean ans = false;
		
		if (N % 4 == 0) {
			ans = true;
		}
		if (N % 7 == 0) {
			ans = true;
		}
		if (ans) {
			System.out.println("Yes");
			return;
		}
		int[] four = new int[N];
		for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		}
		int[] seven = new int[N];
		for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		}
		for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		}
		if(ans) {
			System.out.println("Yes");						
		} else {
			System.out.println("No");						
		}
	}	
} Main
import java.lang.reflect.Array;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		int N = sc.nextInt();
		boolean ans = false;
		
		if (N % 4 == 0) {
			ans = true;
		}
		if (N % 7 == 0) {
			ans = true;
		}
		if (ans) {
			System.out.println("Yes");
			return;
		}
		int[] four = new int[N];
		for (int i = 0; i < N; i++) {
			if (4 * i > N) {
				break;
			}
			four[i] = 4 * i;
		}
		int[] seven = new int[N];
		for (int i = 0; i < N; i++) {
			if (7 * i > N) {
				break;
			}
			seven[i] = 7 * i;
		}
		for (int i = 0; i < N; i++) {
			for (int j = 0; j < N; j++) {
				if (four[i]+seven[j]==N) {
					ans = true;
					break;
				}
			}
			if(ans){
				break;
			}
		}
		if(ans) {
			System.out.println("Yes");						
		} else {
			System.out.println("No");						
		}
	}	
}
