import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int donuts = 4;
        int cake = 7;
        
        for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }

        for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }
        
        for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        }
        
        System.out.print("No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int donuts = 4;
        int cake = 7;
        
        for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }

        for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }
        
        for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        }
        
        System.out.print("No");
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int donuts = 4;
        int cake = 7;
        
        for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }

        for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }
        
        for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        }
        
        System.out.print("No");
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int donuts = 4;
        int cake = 7;
        
        for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }

        for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }
        
        for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        }
        
        System.out.print("No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int donuts = 4; donuts 4 int cake = 7; cake 7 for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        } int i=donuts; int i=donuts; i donuts i<=n i n i+=donuts i+=donuts i donuts {
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        } {
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        } if(i==n){
                System.out.print("Yes");
                System.exit(0);
            } i==n i n {
                System.out.print("Yes");
                System.exit(0);
            } System.out.print("Yes") System.out.print System.out System System.out "Yes" System.exit(0) System.exit System 0 for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        } int i=cake; int i=cake; i cake i<=n i n i+=cake i+=cake i cake {
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        } {
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        } if(i==n){
                System.out.print("Yes");
                System.exit(0);
            } i==n i n {
                System.out.print("Yes");
                System.exit(0);
            } System.out.print("Yes") System.out.print System.out System System.out "Yes" System.exit(0) System.exit System 0 for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        } int i=donuts; int i=donuts; i donuts i<=n i n i+=donuts i+=donuts i donuts {
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        } {
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        } for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            } int j=cake; int j=cake; j cake j<=n j n j+=cake j+=cake j cake {
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            } {
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            } if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                } i + j == n i + j i j n {
                    System.out.print("Yes");
                    System.exit(0);
                } System.out.print("Yes") System.out.print System.out System System.out "Yes" System.exit(0) System.exit System 0 System.out.print("No") System.out.print 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 n = scanner.nextInt();
        int donuts = 4;
        int cake = 7;
        
        for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }

        for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }
        
        for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        }
        
        System.out.print("No");
    }
} public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int donuts = 4;
        int cake = 7;
        
        for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }

        for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }
        
        for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        }
        
        System.out.print("No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int donuts = 4;
        int cake = 7;
        
        for(int i=donuts;i<=n;i+=donuts){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }

        for(int i=cake;i<=n;i+=cake){
            if(i==n){
                System.out.print("Yes");
                System.exit(0);
            }
        }
        
        for(int i=donuts;i<=n;i+=donuts){
            for(int j=cake; j<=n;j+=cake){
                if(i + j == n){
                    System.out.print("Yes");
                    System.exit(0);
                }
            }
        }
        
        System.out.print("No");
    }
}