import java.util.*;
import java.util.Scanner;

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

        int N = sc.nextInt();

        int maxCake = N / 4;
        int maxDonut = N / 7;

        boolean can = false;
        for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        }

        if (can) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java 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 maxCake = N / 4;
        int maxDonut = N / 7;

        boolean can = false;
        for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        }

        if (can) {
            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();

        int maxCake = N / 4;
        int maxDonut = N / 7;

        boolean can = false;
        for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        }

        if (can) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        int maxCake = N / 4;
        int maxDonut = N / 7;

        boolean can = false;
        for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        }

        if (can) {
            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 int maxCake = N / 4; maxCake N / 4 N 4 int maxDonut = N / 7; maxDonut N / 7 N 7 boolean can = false; can false for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        } int i_cake = 0; int i_cake = 0; i_cake 0 i_cake <= maxCake i_cake maxCake i_cake++ i_cake++ i_cake {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        } {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        } for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            } int i_donut = 0; int i_donut = 0; i_donut 0 i_donut <= maxDonut i_donut maxDonut i_donut++ i_donut++ i_donut {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            } {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            } if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                } i_cake * 4 + i_donut * 7 == N i_cake * 4 + i_donut * 7 i_cake * 4 i_cake 4 i_donut * 7 i_donut 7 N {
                    can = true;
                    break;
                } can = true can true break; if (can) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } can {
            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();

        int maxCake = N / 4;
        int maxDonut = N / 7;

        boolean can = false;
        for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        }

        if (can) {
            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();

        int maxCake = N / 4;
        int maxDonut = N / 7;

        boolean can = false;
        for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        }

        if (can) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;
import java.util.Scanner;

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

        int N = sc.nextInt();

        int maxCake = N / 4;
        int maxDonut = N / 7;

        boolean can = false;
        for (int i_cake = 0; i_cake <= maxCake; i_cake++) {
            for (int i_donut = 0; i_donut <= maxDonut; i_donut++) {
                if (i_cake * 4 + i_donut * 7 == N) {
                    can = true;
                    break;
                }
            }
        }

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