import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
 
        //Nから繰り返し7を引き、4で割れる数を探す。
        for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        }
        if(N != -1){
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
 
        //Nから繰り返し7を引き、4で割れる数を探す。
        for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        }
        if(N != -1){
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
 
        //Nから繰り返し7を引き、4で割れる数を探す。
        for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        }
        if(N != -1){
            System.out.println("No");
        }
    } main {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
 
        //Nから繰り返し7を引き、4で割れる数を探す。
        for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        }
        if(N != -1){
            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 for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        } {
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        } if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            } (N - i * 7) >= 0 && ((N - i * 7) % 4) == 0 (N - i * 7) >= 0 (N - i * 7) N i * 7 i 7 0 ((N - i * 7) % 4) == 0 ((N - i * 7) % 4) (N - i * 7) N i * 7 i 7 4 0 {
                System.out.println("Yes");
                N = -1;
                break;
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" N = -1 N -1 1 break; if(N != -1){
            System.out.println("No");
        } N != -1 N -1 1 {
            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) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
 
        //Nから繰り返し7を引き、4で割れる数を探す。
        for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        }
        if(N != -1){
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
 
        //Nから繰り返し7を引き、4で割れる数を探す。
        for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        }
        if(N != -1){
            System.out.println("No");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
 
        //Nから繰り返し7を引き、4で割れる数を探す。
        for(int i = 0; i < N; i++){
            if((N - i * 7) >= 0 && ((N - i * 7) % 4) == 0){
                System.out.println("Yes");
                N = -1;
                break;
            };
        }
        if(N != -1){
            System.out.println("No");
        }
    }
}
