
import java.util.*;

public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ans = false;
        for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        }

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

    }

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

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ans = false;
        for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        }

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

    }

} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ans = false;
        for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        }

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

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ans = false;
        for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        }

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

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc boolean ans = false; ans false for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        } int i = 0; int i = 0; i 0 i < 100 i 100 i++ i++ i {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        } {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        } int tmp = n - i * 4; tmp n - i * 4 n i * 4 i 4 if (tmp < 0)
                break; tmp < 0 tmp 0 break; if (tmp % 7 == 0)
                ans = true; tmp % 7 == 0 tmp % 7 tmp 7 0 ans = true ans true System.out.println(ans ? "Yes" : "No") System.out.println System.out System System.out ans ? "Yes" : "No" ans "Yes" "No" String args[] args public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ans = false;
        for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        }

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

    }

} public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ans = false;
        for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        }

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

    }

} Main

import java.util.*;

public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        boolean ans = false;
        for (int i = 0; i < 100; i++) {
            int tmp = n - i * 4;
            if (tmp < 0)
                break;
            if (tmp % 7 == 0)
                ans = true;
        }

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

    }

}
