import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int dollar = scn.nextInt();
        int cake =4;
        int donut=7;
        int outFlag=0;
        for(int i=0;i<26;i++){
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        }
        if(outFlag>0){
            System.out.println("Yes");
        }else{
            System.out.print("No");
        }

    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int dollar = scn.nextInt();
        int cake =4;
        int donut=7;
        int outFlag=0;
        for(int i=0;i<26;i++){
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        }
        if(outFlag>0){
            System.out.println("Yes");
        }else{
            System.out.print("No");
        }

    }
} Main public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int dollar = scn.nextInt();
        int cake =4;
        int donut=7;
        int outFlag=0;
        for(int i=0;i<26;i++){
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        }
        if(outFlag>0){
            System.out.println("Yes");
        }else{
            System.out.print("No");
        }

    } main {
        Scanner scn=new Scanner(System.in);
        int dollar = scn.nextInt();
        int cake =4;
        int donut=7;
        int outFlag=0;
        for(int i=0;i<26;i++){
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        }
        if(outFlag>0){
            System.out.println("Yes");
        }else{
            System.out.print("No");
        }

    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int dollar = scn.nextInt(); dollar scn.nextInt() scn.nextInt scn int cake =4; cake 4 int donut=7; donut 7 int outFlag=0; outFlag 0 for(int i=0;i<26;i++){
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        } int i=0; int i=0; i 0 i<26 i 26 i++ i++ i {
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        } {
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        } for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            } int j=0; int j=0; j 0 j++ j++ j {
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            } {
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            } int total = cake*i+donut*j; total cake*i+donut*j cake*i cake i donut*j donut j if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                } total==dollar total dollar {
                    outFlag++;
                    break;
                } outFlag++ outFlag break; if(total>dollar){
                    break;
                } total>dollar total dollar {
                    break;
                } break; if(outFlag>0){
            System.out.println("Yes");
        }else{
            System.out.print("No");
        } outFlag>0 outFlag 0 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String arg[] arg
import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int dollar = scn.nextInt();
        int cake =4;
        int donut=7;
        int outFlag=0;
        for(int i=0;i<26;i++){
            for(int j=0;;j++){
                int total = cake*i+donut*j;
                if(total==dollar){
                    outFlag++;
                    break;
                }else if(total>dollar){
                    break;
                }
            }
        }
        if(outFlag>0){
            System.out.println("Yes");
        }else{
            System.out.print("No");
        }

    }
}