import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int a;
        boolean just = false;
        Scanner scan = new Scanner(System.in);

        a = Integer.parseInt(scan.next());


        for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        }

        System.out.println(just ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        int a;
        boolean just = false;
        Scanner scan = new Scanner(System.in);

        a = Integer.parseInt(scan.next());


        for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        }

        System.out.println(just ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        int a;
        boolean just = false;
        Scanner scan = new Scanner(System.in);

        a = Integer.parseInt(scan.next());


        for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        }

        System.out.println(just ? "Yes" : "No");
    } main {
        int a;
        boolean just = false;
        Scanner scan = new Scanner(System.in);

        a = Integer.parseInt(scan.next());


        for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        }

        System.out.println(just ? "Yes" : "No");
    } int a; a boolean just = false; just false Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a = Integer.parseInt(scan.next()) a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        } int donuts = 0; int donuts = 0; donuts 0 donuts <= a donuts a donuts++ donuts++ donuts {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        } {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        } for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            } int cake = 0; int cake = 0; cake 0 cake <= a cake a cake++ cake++ cake {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            } {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            } int total = (4 * donuts) + (7 * cake); total (4 * donuts) + (7 * cake) (4 * donuts) 4 donuts (7 * cake) 7 cake if (total == a) {
                        just = true;
                    } total == a total a {
                        just = true;
                    } just = true just true System.out.println(just ? "Yes" : "No") System.out.println System.out System System.out just ? "Yes" : "No" just "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        int a;
        boolean just = false;
        Scanner scan = new Scanner(System.in);

        a = Integer.parseInt(scan.next());


        for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        }

        System.out.println(just ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        int a;
        boolean just = false;
        Scanner scan = new Scanner(System.in);

        a = Integer.parseInt(scan.next());


        for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        }

        System.out.println(just ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int a;
        boolean just = false;
        Scanner scan = new Scanner(System.in);

        a = Integer.parseInt(scan.next());


        for (int donuts = 0; donuts <= a; donuts++) {
                for (int cake = 0; cake <= a; cake++) {
                    int total = (4 * donuts) + (7 * cake);
                    if (total == a) {
                        just = true;
                    }
            }
        }

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