import java.util.Scanner;

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

       Scanner sc =new Scanner(System.in);

        int N=sc.nextInt();
        String ans="No";
        int c=0;
        int d=0;

        while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){

       Scanner sc =new Scanner(System.in);

        int N=sc.nextInt();
        String ans="No";
        int c=0;
        int d=0;

        while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args){

       Scanner sc =new Scanner(System.in);

        int N=sc.nextInt();
        String ans="No";
        int c=0;
        int d=0;

        while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        }
        System.out.println(ans);
    } main {

       Scanner sc =new Scanner(System.in);

        int N=sc.nextInt();
        String ans="No";
        int c=0;
        int d=0;

        while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        }
        System.out.println(ans);
    } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc String ans="No"; ans "No" int c=0; c 0 int d=0; d 0 while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        } (4*c+7*d)<=N (4*c+7*d) 4*c 4 c 7*d 7 d N {
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        } while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            } (4*c+7*d)<=N (4*c+7*d) 4*c 4 c 7*d 7 d N {
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            } if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;} (4*c+7*d)==N (4*c+7*d) 4*c 4 c 7*d 7 d N {
                    ans="Yes";
                    break;
                } ans="Yes" ans "Yes" break; {c++;} c++ c d++ d c=0 c 0 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
    public static void main(String[] args){

       Scanner sc =new Scanner(System.in);

        int N=sc.nextInt();
        String ans="No";
        int c=0;
        int d=0;

        while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        }
        System.out.println(ans);
    }
} public class Main{
    public static void main(String[] args){

       Scanner sc =new Scanner(System.in);

        int N=sc.nextInt();
        String ans="No";
        int c=0;
        int d=0;

        while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

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

       Scanner sc =new Scanner(System.in);

        int N=sc.nextInt();
        String ans="No";
        int c=0;
        int d=0;

        while((4*c+7*d)<=N){
            while((4*c+7*d)<=N){
               if((4*c+7*d)==N){
                    ans="Yes";
                    break;
                }else{c++;}
            }
            d++;
            c=0;
        }
        System.out.println(ans);
    }
}