import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        }

        System.out.println("No");
        return;

    }

    static List<Integer> primeList(int n) {
        List<Integer> list = new ArrayList<>();
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        }
        for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        }

        return list;
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        }

        System.out.println("No");
        return;

    }

    static List<Integer> primeList(int n) {
        List<Integer> list = new ArrayList<>();
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        }
        for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        }

        return list;
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        }

        System.out.println("No");
        return;

    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        }

        System.out.println("No");
        return;

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        } int i=0; int i=0; i 0 i<=100 i 100 i++ i++ i {
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        } {
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        } for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            } int j=0; int j=0; j 0 j<=100 j 100 j++ j++ j {
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            } {
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            } if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                } N == i*4 + j*7 N i*4 + j*7 i*4 i 4 j*7 j 7 {
                    System.out.println("Yes");
                    return;
                } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" return; String[] args args static List<Integer> primeList(int n) {
        List<Integer> list = new ArrayList<>();
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        }
        for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        }

        return list;
    } primeList {
        List<Integer> list = new ArrayList<>();
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        }
        for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        }

        return list;
    } List<Integer> list = new ArrayList<>(); list new ArrayList<>() boolean[] prime = new boolean[n + 1]; prime new boolean[n + 1] n + 1 n 1 Arrays.fill(prime, true) Arrays.fill Arrays prime true prime[0] = false prime[0] prime 0 false prime[1] = false prime[1] prime 1 false for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        } int i = 2; int i = 2; i 2 i < Math.sqrt(n) i Math.sqrt(n) Math.sqrt Math n i++ i++ i {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        } {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        } if (!prime[i]) continue; !prime[i] prime[i] prime i continue; for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            } int j = 2; int j = 2; j 2 i * j <= n i * j i j n j++ j++ j {
                prime[i * j] = false;
            } {
                prime[i * j] = false;
            } prime[i * j] = false prime[i * j] prime i * j i j false for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        } int i = 0; int i = 0; i 0 i < prime.length i prime.length prime prime.length i++ i++ i {
            if (prime[i]) list.add(i);
        } {
            if (prime[i]) list.add(i);
        } if (prime[i]) list.add(i); prime[i] prime i list.add(i) list.add list i return list; list int n n public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        }

        System.out.println("No");
        return;

    }

    static List<Integer> primeList(int n) {
        List<Integer> list = new ArrayList<>();
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        }
        for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        }

        return list;
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        }

        System.out.println("No");
        return;

    }

    static List<Integer> primeList(int n) {
        List<Integer> list = new ArrayList<>();
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        }
        for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        }

        return list;
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        for(int i=0; i<=100; i++){
            for(int j=0; j<=100; j++){
                if(N == i*4 + j*7){
                    System.out.println("Yes");
                    return;
                }

            }
        }

        System.out.println("No");
        return;

    }

    static List<Integer> primeList(int n) {
        List<Integer> list = new ArrayList<>();
        boolean[] prime = new boolean[n + 1];
        Arrays.fill(prime, true);
        prime[0] = false;
        prime[1] = false;
        for (int i = 2; i < Math.sqrt(n); i++) {
            if (!prime[i]) continue;
            for (int j = 2; i * j <= n; j++) {
                prime[i * j] = false;
            }
        }
        for (int i = 0; i < prime.length; i++) {
            if (prime[i]) list.add(i);
        }

        return list;
    }
}
