import java.util.Scanner;

public class Main {

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

        int a = 4;
        int b = 7;

        boolean isOk = false;
        for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        }

        if (isOk) {
            System.out.println("Yes");
        } else {
            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();
        sc.close();

        int a = 4;
        int b = 7;

        boolean isOk = false;
        for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        }

        if (isOk) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

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

        int a = 4;
        int b = 7;

        boolean isOk = false;
        for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        }

        if (isOk) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();

        int a = 4;
        int b = 7;

        boolean isOk = false;
        for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        }

        if (isOk) {
            System.out.println("Yes");
        } else {
            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 sc.close() sc.close sc int a = 4; a 4 int b = 7; b 7 boolean isOk = false; isOk false for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        } int i = 0; int i = 0; i 0 i <= 100 / a i 100 / a 100 a i++ i++ i {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        } {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        } for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            } int j = 0; int j = 0; j 0 j <= 100 / b j 100 / b 100 b j++ j++ j {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            } {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            } if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                } i * a + j * 7 == n i * a + j * 7 i * a i a j * 7 j 7 n {
                    isOk = true;
                    break;
                } isOk = true isOk true break; if (isOk) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } isOk {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } 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();
        sc.close();

        int a = 4;
        int b = 7;

        boolean isOk = false;
        for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        }

        if (isOk) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

} public class Main {

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

        int a = 4;
        int b = 7;

        boolean isOk = false;
        for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        }

        if (isOk) {
            System.out.println("Yes");
        } else {
            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();
        sc.close();

        int a = 4;
        int b = 7;

        boolean isOk = false;
        for (int i = 0; i <= 100 / a; i++) {
            for (int j = 0; j <= 100 / b; j++) {
                if (i * a + j * 7 == n) {
                    isOk = true;
                    break;
                }
            }
        }

        if (isOk) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }

}
