import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    }
} Main public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    } try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        } {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            } int i4 = 0; int i4 = 0; i4 0 i4 <= N i4 N i4++ i4++ i4 {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            } {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            } for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                } int i7 = 0; int i7 = 0; i7 0 i7 <= N i7 N i7++ i7++ i7 {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                } {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                } if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    } i4 * 4 + i7 * 7 == N i4 * 4 + i7 * 7 i4 * 4 i4 4 i7 * 7 i7 7 N {
                        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" String args[] args public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            for (int i4 = 0; i4 <= N; i4++) {
                for (int i7 = 0; i7 <= N; i7++) {
                    if (i4 * 4 + i7 * 7 == N) {
                        System.out.println("Yes");
                        return;
                    }
                }
            }
            System.out.println("No");
        }
    }
}
