public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        }
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        }
    }
} Main private static java.util.Scanner scanner = new java.util.Scanner(System.in); scanner new java.util.Scanner(System.in) public static void main(String[] args) {
        int n = scanner.nextInt();
        if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        }
    } main {
        int n = scanner.nextInt();
        if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        }
    } int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        } n % 4 == 0 n % 4 n 4 0 {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        } for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            } int i = 1; int i = 1; i 1 i <= n / 7 i n / 7 n 7 i++ i++ i {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            } {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            } if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                } (n - (i * 7)) % 4 == 0 (n - (i * 7)) % 4 (n - (i * 7)) n (i * 7) i 7 4 0 {
                    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 {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        }
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        }
    }
} Main
public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        int n = scanner.nextInt();
        if (n % 4 == 0) {
            System.out.println("Yes");
        } else {
            for (int i = 1; i <= n / 7; i++) {
                if ((n - (i * 7)) % 4 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");
        }
    }
}