import java.util.*;
public class Main {
    public static void main(String[] args) {
        String returnFlag ="No";
        Scanner scanner = new Scanner(System.in);
        int totalN = scanner.nextInt();
        int cake4 =0;
        int donut7=0;
        while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        }
        System.out.println(returnFlag);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        String returnFlag ="No";
        Scanner scanner = new Scanner(System.in);
        int totalN = scanner.nextInt();
        int cake4 =0;
        int donut7=0;
        while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        }
        System.out.println(returnFlag);
    }
} Main public static void main(String[] args) {
        String returnFlag ="No";
        Scanner scanner = new Scanner(System.in);
        int totalN = scanner.nextInt();
        int cake4 =0;
        int donut7=0;
        while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        }
        System.out.println(returnFlag);
    } main {
        String returnFlag ="No";
        Scanner scanner = new Scanner(System.in);
        int totalN = scanner.nextInt();
        int cake4 =0;
        int donut7=0;
        while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        }
        System.out.println(returnFlag);
    } String returnFlag ="No"; returnFlag "No" Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int totalN = scanner.nextInt(); totalN scanner.nextInt() scanner.nextInt scanner int cake4 =0; cake4 0 int donut7=0; donut7 0 while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        } donut7*7<=totalN donut7*7 donut7 7 totalN {
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        } cake4=0 cake4 0 while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            } (donut7*7+cake4*4)<=totalN (donut7*7+cake4*4) donut7*7 donut7 7 cake4*4 cake4 4 totalN {
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            } if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                } donut7*7+cake4*4==totalN donut7*7+cake4*4 donut7*7 donut7 7 cake4*4 cake4 4 totalN {
                    returnFlag="Yes";
                    break;
                } returnFlag="Yes" returnFlag "Yes" break; cake4++ cake4 donut7++ donut7 System.out.println(returnFlag) System.out.println System.out System System.out returnFlag String[] args args public class Main {
    public static void main(String[] args) {
        String returnFlag ="No";
        Scanner scanner = new Scanner(System.in);
        int totalN = scanner.nextInt();
        int cake4 =0;
        int donut7=0;
        while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        }
        System.out.println(returnFlag);
    }
} public class Main {
    public static void main(String[] args) {
        String returnFlag ="No";
        Scanner scanner = new Scanner(System.in);
        int totalN = scanner.nextInt();
        int cake4 =0;
        int donut7=0;
        while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        }
        System.out.println(returnFlag);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        String returnFlag ="No";
        Scanner scanner = new Scanner(System.in);
        int totalN = scanner.nextInt();
        int cake4 =0;
        int donut7=0;
        while(donut7*7<=totalN){
            cake4=0;
            while ((donut7*7+cake4*4)<=totalN){
                if(donut7*7+cake4*4==totalN){
                    returnFlag="Yes";
                    break;
                }
                cake4++;
            }
            donut7++;
        }
        System.out.println(returnFlag);
    }
}
