import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        boolean judge = false;
        for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        }
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        boolean judge = false;
        for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        }
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
    }
} Main public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        boolean judge = false;
        for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        }
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
    } main {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        boolean judge = false;
        for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        }
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc boolean judge = false; judge false for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        } int i = n; int i = n; i n 0 <= i 0 i i -= 4 i -= 4 i 4 {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        } {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        } if (i % 7 == 0 || i == 0) {
                judge = true;
            } i % 7 == 0 || i == 0 i % 7 == 0 i % 7 i 7 0 i == 0 i 0 {
                judge = true;
            } judge = true judge true String result = judge ? "Yes" : "No"; result judge ? "Yes" : "No" judge "Yes" "No" System.out.println(result) System.out.println System.out System System.out result String args[] args public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        boolean judge = false;
        for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        }
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
    }
} public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        boolean judge = false;
        for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        }
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        sc.close();

        // 主処理
        boolean judge = false;
        for (int i = n; 0 <= i; i -= 4) {
            if (i % 7 == 0 || i == 0) {
                judge = true;
            }
        }
        String result = judge ? "Yes" : "No";

        // 出力
        System.out.println(result);
    }
}
