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) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        }

        return false;
    }
} 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) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        }

        return false;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

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

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

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

        sc.close();
    } 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) ? "Yes" : "No") System.out.println System.out System System.out solve(N) ? "Yes" : "No" solve(N) solve N "Yes" "No" sc.close() sc.close sc String[] args args static boolean solve(int N) {
        for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        }

        return false;
    } solve {
        for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        }

        return false;
    } for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        } int i = 0; int i = 0; i 0 i * 4 <= N i * 4 i 4 N ++i ++i i {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        } {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        } if ((N - i * 4) % 7 == 0) {
                return true;
            } (N - i * 4) % 7 == 0 (N - i * 4) % 7 (N - i * 4) N i * 4 i 4 7 0 {
                return true;
            } return true; true return false; false 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) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        }

        return false;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

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

        sc.close();
    }

    static boolean solve(int N) {
        for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        }

        return false;
    }
} 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) ? "Yes" : "No");

        sc.close();
    }

    static boolean solve(int N) {
        for (int i = 0; i * 4 <= N; ++i) {
            if ((N - i * 4) % 7 == 0) {
                return true;
            }
        }

        return false;
    }
}