import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC105_B solver = new ABC105_B();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC105_B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC105_B solver = new ABC105_B();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC105_B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC105_B solver = new ABC105_B();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC105_B solver = new ABC105_B();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) ABC105_B solver = new ABC105_B(); solver new ABC105_B() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class ABC105_B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        }

    } ABC105_B public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        } solve {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        } int n = in.nextInt(); n in.nextInt() in.nextInt in String ans = "No"; ans "No" for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            } int i = 0; int i = 0; i 0 i <= 100 i 100 i++ i++ i {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            } {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            } for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                } int j = 0; int j = 0; j 0 j <= 100 j 100 j++ j++ j {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                } {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                } if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    } 4 * i + 7 * j == n 4 * i + 7 * j 4 * i 4 i 7 * j 7 j n {
                        ans = "Yes";
                    } ans = "Yes" ans "Yes" out.print(ans) out.print out ans int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC105_B solver = new ABC105_B();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC105_B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC105_B solver = new ABC105_B();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC105_B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ABC105_B solver = new ABC105_B();
        solver.solve(1, in, out);
        out.close();
    }

    static class ABC105_B {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int n = in.nextInt();
            String ans = "No";
            for (int i = 0; i <= 100; i++) {
                for (int j = 0; j <= 100; j++) {
                    if (4 * i + 7 * j == n) {
                        ans = "Yes";
                    }
                }
            }

            out.print(ans);

        }

    }
}

