import java.util.Scanner;

class Main {
    static final Scanner IN = new Scanner(System.in);
    static final int N = Integer.parseInt(IN.next());
    public static void main(String... args) {
        boolean flag = false;     
        for (int c = 0; c <= N; c += 4) {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util class Main {
    static final Scanner IN = new Scanner(System.in);
    static final int N = Integer.parseInt(IN.next());
    public static void main(String... args) {
        boolean flag = false;     
        for (int c = 0; c <= N; c += 4) {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
} Main static final Scanner IN = new Scanner(System.in); IN new Scanner(System.in) static final int N = Integer.parseInt(IN.next()); N Integer.parseInt(IN.next()) Integer.parseInt Integer IN.next() IN.next IN public static void main(String... args) {
        boolean flag = false;     
        for (int c = 0; c <= N; c += 4) {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    } main {
        boolean flag = false;     
        for (int c = 0; c <= N; c += 4) {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    } boolean flag = false; flag false for (int c = 0; c <= N; c += 4) {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        } int c = 0; int c = 0; c 0 c <= N c N c += 4 c += 4 c 4 {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        } {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        } if ((N - c) % 7 == 0) {
                flag = true;
                break;
            } (N - c) % 7 == 0 (N - c) % 7 (N - c) N c 7 0 {
                flag = true;
                break;
            } flag = true flag true break; System.out.println(flag ? "Yes" : "No") System.out.println System.out System System.out flag ? "Yes" : "No" flag "Yes" "No" String... args args
import java.util.Scanner;

class Main {
    static final Scanner IN = new Scanner(System.in);
    static final int N = Integer.parseInt(IN.next());
    public static void main(String... args) {
        boolean flag = false;     
        for (int c = 0; c <= N; c += 4) {
            if ((N - c) % 7 == 0) {
                flag = true;
                break;
            }
        }
        System.out.println(flag ? "Yes" : "No");
    }
}