import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // B - Cakes and Donuts

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "No";
        loop:
        for (int i = 0; i <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (i * 4 + j * 7 == n) {
                    ans = "Yes";
                    break loop;
                }
            }
        }

        System.out.println(ans);
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // B - Cakes and Donuts

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "No";
        loop:
        for (int i = 0; i <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (i * 4 + j * 7 == n) {
                    ans = "Yes";
                    break loop;
                }
            }
        }

        System.out.println(ans);
    }

} Main public static void main(String[] args) {
        // B - Cakes and Donuts

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "No";
        loop:
        for (int i = 0; i <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (i * 4 + j * 7 == n) {
                    ans = "Yes";
                    break loop;
                }
            }
        }

        System.out.println(ans);
    } main {
        // B - Cakes and Donuts

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "No";
        loop:
        for (int i = 0; i <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (i * 4 + j * 7 == n) {
                    ans = "Yes";
                    break loop;
                }
            }
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String ans = "No"; ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {
        // B - Cakes and Donuts

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "No";
        loop:
        for (int i = 0; i <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (i * 4 + j * 7 == n) {
                    ans = "Yes";
                    break loop;
                }
            }
        }

        System.out.println(ans);
    }

} public class Main {

    public static void main(String[] args) {
        // B - Cakes and Donuts

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "No";
        loop:
        for (int i = 0; i <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (i * 4 + j * 7 == n) {
                    ans = "Yes";
                    break loop;
                }
            }
        }

        System.out.println(ans);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // B - Cakes and Donuts

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();

        String ans = "No";
        loop:
        for (int i = 0; i <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (i * 4 + j * 7 == n) {
                    ans = "Yes";
                    break loop;
                }
            }
        }

        System.out.println(ans);
    }

}