import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader inut = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(inut.readLine());

        for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader inut = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(inut.readLine());

        for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args)throws Exception {
        BufferedReader inut = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(inut.readLine());

        for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    } main {
        BufferedReader inut = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(inut.readLine());

        for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    } BufferedReader inut = new BufferedReader(new InputStreamReader(System.in)); inut new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(inut.readLine()); n Integer.parseInt(inut.readLine()) Integer.parseInt Integer inut.readLine() inut.readLine inut for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        } int i = 0; int i = 0; i 0 i <= 25 i 25 i++ i++ i {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        } {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        } for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            } int j = 0; int j = 0; j 0 j <= 25 j 25 j++ j++ j {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            } {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            } if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                } (i*4) + (j*7) == n (i*4) + (j*7) (i*4) i 4 (j*7) j 7 n {
                    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" String[] args args public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader inut = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(inut.readLine());

        for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader inut = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(inut.readLine());

        for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args)throws Exception {
        BufferedReader inut = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(inut.readLine());

        for (int i = 0; i <= 25; i++) {
            for (int j = 0; j <= 25; j++) {
                if ((i*4) + (j*7) == n) {
                    System.out.println("Yes");
                    return;
                }
            }
        }
        System.out.println("No");
    }
}
