import java.util.Scanner;

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

        if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

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


    }

}

 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();

        if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

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


    }

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

        if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

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


    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

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


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

        } else {
            System.out.println("Yes");
        } n % 7 != 0 n % 7 n 7 0 {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

        } for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            } int k = n; int k = n; k n k >= 0 k 0 k = k - 4 k = k - 4 k k - 4 k 4 {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            } {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            } if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                } k % 7 == 0 k % 7 k 7 0 {
                    System.out.println("Yes");
                    return;
                } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

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


    }

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

        if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

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


    }

} Main
import java.util.Scanner;

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

        if (n % 7 != 0) {
            for (int k = n; k >= 0; k = k - 4) {
                if (k % 7 == 0) {
                    System.out.println("Yes");
                    return;
                }
            }
            System.out.println("No");

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


    }

}


