import java.io.IOException;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        }
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        }
    }
} Main public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        }
    } main {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        }
    } try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        } {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        } BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) new BufferedReader(
                new InputStreamReader(System.in)) final String s = reader.readLine(); s reader.readLine() reader.readLine reader int N = Integer.parseInt(s); N Integer.parseInt(s) Integer.parseInt Integer s boolean flg = false; flg false for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            } int i = 0; int i = 0; i 0 i <= N i N i++ i++ i {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            } {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            } for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                } int j = 0; int j = 0; j 0 j <= N j N j++ j++ j {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                } {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                } if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    } N == 4 * i + 7 * j N 4 * i + 7 * j 4 * i 4 i 7 * j 7 j {
                        flg = true;
                        break;
                    } flg = true flg true break; System.out.println(flg ? "Yes" : "No") System.out.println System.out System System.out flg ? "Yes" : "No" flg "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        }
    }
} Main
import java.io.IOException;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            final String s = reader.readLine();

            int N = Integer.parseInt(s);

            boolean flg = false;
            for (int i = 0; i <= N; i++) {
                for (int j = 0; j <= N; j++) {
                    if (N == 4 * i + 7 * j) {
                        flg = true;
                        break;
                    }
                }
            }

            System.out.println(flg ? "Yes" : "No");
        }
    }
}
