import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int jQuot = N /7;
        boolean can = false;

        for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        }
        System.out.println(can ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int jQuot = N /7;
        boolean can = false;

        for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        }
        System.out.println(can ? "Yes" : "No");
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int jQuot = N /7;
        boolean can = false;

        for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        }
        System.out.println(can ? "Yes" : "No");
    } main {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int jQuot = N /7;
        boolean can = false;

        for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        }
        System.out.println(can ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int jQuot = N /7; jQuot N /7 N 7 boolean can = false; can false for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        } int i = 0; int i = 0; i 0 i <= jQuot i jQuot i++ i++ i {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        } {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        } if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            } (N - (i * 7)) % 4 == 0 (N - (i * 7)) % 4 (N - (i * 7)) N (i * 7) i 7 4 0 {
                can = true;
            } can = true can true System.out.println(can ? "Yes" : "No") System.out.println System.out System System.out can ? "Yes" : "No" can "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int jQuot = N /7;
        boolean can = false;

        for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        }
        System.out.println(can ? "Yes" : "No");
    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int jQuot = N /7;
        boolean can = false;

        for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        }
        System.out.println(can ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int jQuot = N /7;
        boolean can = false;

        for (int i = 0; i <= jQuot; i++) {

            if((N - (i * 7)) % 4 == 0 ) {
                can = true;
            }
        }
        System.out.println(can ? "Yes" : "No");
    }
}