import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    } main {
        // Your code here!
        
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n=scn.nextInt(); n scn.nextInt() scn.nextInt scn while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        } n%7!=0 n%7 n 7 0 {
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        } n-=4 n 4 if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            } n<4&&n!=0 n<4 n 4 n!=0 n 0 {
                System.out.println("No");
                System.exit(0);
            } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        while(n%7!=0){
            n-=4;
            if(n<4&&n!=0){
                System.out.println("No");
                System.exit(0);
            }
        }
        System.out.println("Yes");
    }
}
