import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int result = 0;
		
		int j = 0;
		
		
		
		for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		}
		
		
		
		if (result == 1){
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int result = 0;
		
		int j = 0;
		
		
		
		for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		}
		
		
		
		if (result == 1){
			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 result = 0;
		
		int j = 0;
		
		
		
		for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		}
		
		
		
		if (result == 1){
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int result = 0;
		
		int j = 0;
		
		
		
		for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		}
		
		
		
		if (result == 1){
			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 result = 0; result 0 int j = 0; j 0 for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		} int waku = 1; int waku = 1; waku 1 waku < 28 && result == 0 waku < 28 waku 28 result == 0 result 0 waku++ waku++ waku {
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		} {
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		} j = 0 j 0 for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			} int i = waku; int i = waku; i waku i >= 0 && result == 0 i >= 0 i 0 result == 0 result 0 i-- i-- i {
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			} {
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			} if (n == i * 4 + j * 7){
					result = 1;
				} n == i * 4 + j * 7 n i * 4 + j * 7 i * 4 i 4 j * 7 j 7 {
					result = 1;
				} result = 1 result 1 j++ j if (result == 1){
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		} result == 1 result 1 {
			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 result = 0;
		
		int j = 0;
		
		
		
		for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		}
		
		
		
		if (result == 1){
			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 result = 0;
		
		int j = 0;
		
		
		
		for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		}
		
		
		
		if (result == 1){
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int result = 0;
		
		int j = 0;
		
		
		
		for (int waku = 1; waku < 28 && result == 0; waku++){
			j = 0;
			for (int i = waku; i >= 0 && result == 0; i--){
				
				if (n == i * 4 + j * 7){
					result = 1;
				}
				
				j++;
			}
		}
		
		
		
		if (result == 1){
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
}
