import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

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

        for (int num4 = 0; num4 <= n / 4; num4++) {
            if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        for (int num4 = 0; num4 <= n / 4; num4++) {
            if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        for (int num4 = 0; num4 <= n / 4; num4++) {
            if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner for (int num4 = 0; num4 <= n / 4; num4++) {
            if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            }
        } int num4 = 0; int num4 = 0; num4 0 num4 <= n / 4 num4 n / 4 n 4 num4++ num4++ num4 {
            if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            }
        } {
            if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            }
        } if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            } (n - num4 * 4 ) % 7 == 0 (n - num4 * 4 ) % 7 (n - num4 * 4 ) n num4 * 4 num4 4 7 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
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        for (int num4 = 0; num4 <= n / 4; num4++) {
            if ((n - num4 * 4 ) % 7 == 0) {
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}
