import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    }
} import java.io.BufferedWriter; BufferedWriter java.io import java.io.IOException; IOException java.io import java.io.OutputStreamWriter; OutputStreamWriter java.io import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    }
} Main public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    } main {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out)); bufferedWriter new BufferedWriter(new OutputStreamWriter(System.out)) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner String res = "No"; res "No" if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        } N % 4 == 0 N % 4 N 4 0 res = "Yes" res "Yes" if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        } N % 7 == 0 N % 7 N 7 0 res = "Yes" res "Yes" {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        } for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            } int i = 1; int i = 1; i 1 i <= N/7 i N/7 N 7 i++ i++ i {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            } {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            } if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                } (N - 7 * i) % 4 == 0 (N - 7 * i) % 4 (N - 7 * i) N 7 * i 7 i 4 0 {
                    res = "Yes";
                    break;
                } res = "Yes" res "Yes" break; bufferedWriter.write(res) bufferedWriter.write bufferedWriter res bufferedWriter.close() bufferedWriter.close bufferedWriter scanner.close() scanner.close scanner String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    }
} Main
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    }
}