import java.util.Scanner;

public class Main {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        System.out.println(solve(N));
    }

    static String solve(int N) {
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        }
        return "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();

        System.out.println(solve(N));
    }

    static String solve(int N) {
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        }
        return "No";
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        System.out.println(solve(N));
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        System.out.println(solve(N));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc System.out.println(solve(N)) System.out.println System.out System System.out solve(N) solve N String[] args args static String solve(int N) {
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        }
        return "No";
    } solve {
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        }
        return "No";
    } for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        } int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        } {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        } for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            } int j = 0; int j = 0; j 0 j < 25 j 25 j++ j++ j {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            } {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            } if( i * 7 + j * 4 == N ) {
                    return "Yes";
                } i * 7 + j * 4 == N i * 7 + j * 4 i * 7 i 7 j * 4 j 4 N {
                    return "Yes";
                } return "Yes"; "Yes" return "No"; "No" int N N public class Main {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        System.out.println(solve(N));
    }

    static String solve(int N) {
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        }
        return "No";
    }
} public class Main {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        System.out.println(solve(N));
    }

    static String solve(int N) {
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        }
        return "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();

        System.out.println(solve(N));
    }

    static String solve(int N) {
        for (int i = 0; i < 13; i++) {
            for (int j = 0; j < 25; j++) {
                if( i * 7 + j * 4 == N ) {
                    return "Yes";
                }
            }
        }
        return "No";
    }
}
