import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		int N = sc.nextInt();
		ArrayList<Integer> kouho = new ArrayList<>();
		for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		}
		if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes");
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		int N = sc.nextInt();
		ArrayList<Integer> kouho = new ArrayList<>();
		for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		}
		if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes");
	}
} Main public static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args){
		int N = sc.nextInt();
		ArrayList<Integer> kouho = new ArrayList<>();
		for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		}
		if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes");
	} main {
		int N = sc.nextInt();
		ArrayList<Integer> kouho = new ArrayList<>();
		for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		}
		if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes");
	} int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ArrayList<Integer> kouho = new ArrayList<>(); kouho new ArrayList<>() for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		} int i = 0 ; int i = 0 ; i 0 i < 26 i 26 i++ i++ i {
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		} {
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		} for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			} int j = 0 ; int j = 0 ; j 0 j < 18 j 18 j++ j++ j {
				kouho.add(4*i+7*j);
			} {
				kouho.add(4*i+7*j);
			} kouho.add(4*i+7*j) kouho.add kouho 4*i+7*j 4*i 4 i 7*j 7 j if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes"); kouho.indexOf(N) == -1 kouho.indexOf(N) kouho.indexOf kouho N -1 1 System.out.println("No") System.out.println System.out System System.out "No" System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
	public static Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		int N = sc.nextInt();
		ArrayList<Integer> kouho = new ArrayList<>();
		for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		}
		if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes");
	}
} public class Main {
	public static Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		int N = sc.nextInt();
		ArrayList<Integer> kouho = new ArrayList<>();
		for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		}
		if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes");
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		int N = sc.nextInt();
		ArrayList<Integer> kouho = new ArrayList<>();
		for(int i = 0 ; i < 26 ; i++){
			for(int j = 0 ; j < 18 ; j++){
				kouho.add(4*i+7*j);
			}
		}
		if(kouho.indexOf(N) == -1)
			System.out.println("No");
		else
			System.out.println("Yes");
	}
}
