import java.util.Scanner;
import java.util.*;

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

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    }
} import java.util.Scanner; Scanner java.util import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String ans = "No";
        int n = sc.nextInt();

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String ans = "No";
        int n = sc.nextInt();

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    } main {
        Scanner sc = new Scanner(System.in);
        String ans = "No";
        int n = sc.nextInt();

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ans = "No"; ans "No" int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        } int i=0; int i=0; i 0 i<16 i 16 i++ i++ i {
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        } {
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        } for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            } int j=0; int j=0; j 0 j<26 j 26 j++ j++ j {
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            } {
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            } if(7*i + 4*j == n ){
                    ans ="Yes";
                } 7*i + 4*j == n 7*i + 4*j 7*i 7 i 4*j 4 j n {
                    ans ="Yes";
                } ans ="Yes" ans "Yes" 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);
        String ans = "No";
        int n = sc.nextInt();

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String ans = "No";
        int n = sc.nextInt();

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    }
} Main
import java.util.Scanner;
import java.util.*;

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

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    }
}
