import java.util.*;
import java.lang.Math;

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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        }
        System.out.println(ans ? "Yes":"No");
    }
} import java.util.*; util.* java import java.lang.Math; Math java.lang 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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        }
        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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        }
        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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        }
        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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        } int i = 0; int i = 0; i 0 i <= n / 4 i n / 4 n 4 i++ i++ i {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        } {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        } for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            } int j = 0; int j = 0; j 0 j <= n / 7 j n / 7 n 7 j++ j++ j {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            } {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            } if (4 * i + 7 * j == n) {
                    ans = true;
                } 4 * i + 7 * j == n 4 * i + 7 * j 4 * i 4 i 7 * j 7 j n {
                    ans = true;
                } ans = true ans true if (ans) {
                break;
            } ans {
                break;
            } break; 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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        }
        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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        }
        System.out.println(ans ? "Yes":"No");
    }
} Main
import java.util.*;
import java.lang.Math;

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 <= n / 4; i++) {
            for (int j = 0; j <= n / 7; j++) {
                if (4 * i + 7 * j == n) {
                    ans = true;
                }
            }
            if (ans) {
                break;
            }
        }
        System.out.println(ans ? "Yes":"No");
    }
}