import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int price = scanner.nextInt();
        boolean isBreak = false;

        for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        }
        if(!isBreak) {
            System.out.println("No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int price = scanner.nextInt();
        boolean isBreak = false;

        for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        }
        if(!isBreak) {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int price = scanner.nextInt();
        boolean isBreak = false;

        for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        }
        if(!isBreak) {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int price = scanner.nextInt();
        boolean isBreak = false;

        for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        }
        if(!isBreak) {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int price = scanner.nextInt(); price scanner.nextInt() scanner.nextInt scanner boolean isBreak = false; isBreak false for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        } int i=0; int i=0; i 0 i<=25 i 25 i++ i++ i {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        } {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        } for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            } int j=0; int j=0; j 0 j<15 j 15 j++ j++ j {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            } {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            } if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                } price == 4*i + 7*j price 4*i + 7*j 4*i 4 i 7*j 7 j {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                } System.out.println("Yes") System.out.println System.out System System.out "Yes" isBreak = true isBreak true break; if(isBreak) {
                break;
            } isBreak {
                break;
            } break; if(!isBreak) {
            System.out.println("No");
        } !isBreak isBreak {
            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 scanner = new Scanner(System.in);
        int price = scanner.nextInt();
        boolean isBreak = false;

        for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        }
        if(!isBreak) {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int price = scanner.nextInt();
        boolean isBreak = false;

        for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        }
        if(!isBreak) {
            System.out.println("No");
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int price = scanner.nextInt();
        boolean isBreak = false;

        for(int i=0; i<=25; i++) {
            for(int j=0; j<15; j++) {
                if(price == 4*i + 7*j) {
                    System.out.println("Yes");
                    isBreak = true;
                    break;
                }
            }
            if(isBreak) {
                break;
            }
        }
        if(!isBreak) {
            System.out.println("No");
        }
    }
}
