import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        }
        System.out.println("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 ans = 0;
        for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        }
        System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        }
        System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        } int i = 0; int i = 0; i 0 i < 101 i 101 i++ i++ i {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        } {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        } for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            } int j = 0; int j = 0; j 0 j < 101 j 101 j++ j++ j {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            } {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            } ans = i * 4 + j * 7 ans i * 4 + j * 7 i * 4 i 4 j * 7 j 7 if(ans == n) {
                    System.out.println("Yes");
                    return;
                } ans == n ans n {
                    System.out.println("Yes");
                    return;
                } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; if(ans > n) {
                    break;
                } ans > n ans n {
                    break;
                } break; System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        }
        System.out.println("No");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        }
        System.out.println("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 ans = 0;
        for (int i = 0; i < 101; i++) {
            for (int j = 0; j < 101; j++) {
                ans = i * 4 + j * 7;
                if(ans == n) {
                    System.out.println("Yes");
                    return;
                }
                if(ans > n) {
                    break;
                }
            }
        }
        System.out.println("No");
    }
}