import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        }
        
        System.out.println( flag ? "Yes" : "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();
        boolean flag = false;
        for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        }
        
        System.out.println( flag ? "Yes" : "No" );
        
    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        }
        
        System.out.println( flag ? "Yes" : "No" );
        
    } main {

        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        }
        
        System.out.println( flag ? "Yes" : "No" );
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc boolean flag = false; flag false for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        } int i = 0; int i = 0; i 0 i <= N/4 i N/4 N 4 i++ i++ i {
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        } {
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        } for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            } int j = 0; int j = 0; j 0 j <= N/7 j N/7 N 7 j++ j++ j {
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            } {
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            } if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                } i * 4 + j * 7 == N i * 4 + j * 7 i * 4 i 4 j * 7 j 7 N {
                    flag = true;
                    break;
                } flag = true flag true break; System.out.println( flag ? "Yes" : "No" ) System.out.println System.out System System.out flag ? "Yes" : "No" flag "Yes" "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();
        boolean flag = false;
        for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        }
        
        System.out.println( flag ? "Yes" : "No" );
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        boolean flag = false;
        for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        }
        
        System.out.println( flag ? "Yes" : "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();
        boolean flag = false;
        for(int i = 0; i <= N/4; i++){
            for(int j = 0; j <= N/7; j++){
                if( i * 4 + j * 7 == N ){
                    flag = true;
                    break;
                }
            }
        }
        
        System.out.println( flag ? "Yes" : "No" );
        
    }
}
