import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);
                int numN = scan.nextInt();
                int[] Length = new int[numN];
                int sum = 0;
                int max=0;
                int tmp=0;

                for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                }

                if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                }
                
                scan.close();
        }
} import java.util.Scanner; Scanner java.util public class Main {
        public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);
                int numN = scan.nextInt();
                int[] Length = new int[numN];
                int sum = 0;
                int max=0;
                int tmp=0;

                for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                }

                if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                }
                
                scan.close();
        }
} Main public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);
                int numN = scan.nextInt();
                int[] Length = new int[numN];
                int sum = 0;
                int max=0;
                int tmp=0;

                for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                }

                if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                }
                
                scan.close();
        } main {
                Scanner scan = new Scanner(System.in);
                int numN = scan.nextInt();
                int[] Length = new int[numN];
                int sum = 0;
                int max=0;
                int tmp=0;

                for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                }

                if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                }
                
                scan.close();
        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int numN = scan.nextInt(); numN scan.nextInt() scan.nextInt scan int[] Length = new int[numN]; Length new int[numN] numN int sum = 0; sum 0 int max=0; max 0 int tmp=0; tmp 0 for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                } int i=0; int i=0; i 0 i<numN i numN i++ i++ i {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                } {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                } Length[i] = scan.nextInt() Length[i] Length i scan.nextInt() scan.nextInt scan if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    } i == 0 i 0 {
                        max = Length[i];
                    } max = Length[i] max Length[i] Length i {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    } if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        } max < Length[i] max Length[i] Length i {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        } tmp = max tmp max max = Length[i] max Length[i] Length i sum = sum + tmp sum sum + tmp sum tmp {
                            sum += Length[i];
                        } sum += Length[i] sum Length[i] Length i if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                } max < sum max sum {
                    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" scan.close() scan.close scan String[] args args public class Main {
        public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);
                int numN = scan.nextInt();
                int[] Length = new int[numN];
                int sum = 0;
                int max=0;
                int tmp=0;

                for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                }

                if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                }
                
                scan.close();
        }
} public class Main {
        public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);
                int numN = scan.nextInt();
                int[] Length = new int[numN];
                int sum = 0;
                int max=0;
                int tmp=0;

                for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                }

                if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                }
                
                scan.close();
        }
} Main
import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);
                int numN = scan.nextInt();
                int[] Length = new int[numN];
                int sum = 0;
                int max=0;
                int tmp=0;

                for (int i=0; i<numN; i++) {
                    Length[i] = scan.nextInt();
                    if ( i == 0 ) {
                        max = Length[i];
                    }
                    else {
                        if ( max < Length[i] ) {
                            tmp = max;
                            max = Length[i];
                            sum = sum + tmp;
                        }
                        else {
                            sum += Length[i];
                        }
                    }
                }

                if ( max < sum ) {
                    System.out.println( "Yes" );
                }
                else {
                    System.out.println( "No" );
                }
                
                scan.close();
        }
}
