import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();

        boolean flag=false;
        for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        }
        if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();

        boolean flag=false;
        for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        }
        if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();

        boolean flag=false;
        for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        }
        if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();

        boolean flag=false;
        for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        }
        if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A=sc.nextInt(); A sc.nextInt() sc.nextInt sc boolean flag=false; flag false for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        } int a = 0; int a = 0; a 0 a <= A a A a=a+4 a=a+4 a a+4 a 4 {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        } {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        } for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            } int b=0; int b=0; b 0 b<=A b A b=b+7 b=b+7 b b+7 b 7 {
                if (a+b==A){
                    flag=true;
                }
            } {
                if (a+b==A){
                    flag=true;
                }
            } if (a+b==A){
                    flag=true;
                } a+b==A a+b a b A {
                    flag=true;
                } flag=true flag true if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        } flag==false flag false {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } 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) {
        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();

        boolean flag=false;
        for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        }
        if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();

        boolean flag=false;
        for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        }
        if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A=sc.nextInt();

        boolean flag=false;
        for (int a = 0; a <= A; a=a+4) {
            for(int b=0;b<=A;b=b+7){
                if (a+b==A){
                    flag=true;
                }
            }
        }
        if (flag==false){
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
    }
}
