import java.util.*;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] side=new int[n];
        int max=-1;
        int num=-1;
        for(int i=0;i<n;i++){
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        }   
        int total=0;
        for(int i=0;i<n;i++){
            if(i!=num) total+=side[i];
        }
        if(total>max){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] side=new int[n];
        int max=-1;
        int num=-1;
        for(int i=0;i<n;i++){
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        }   
        int total=0;
        for(int i=0;i<n;i++){
            if(i!=num) total+=side[i];
        }
        if(total>max){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] side=new int[n];
        int max=-1;
        int num=-1;
        for(int i=0;i<n;i++){
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        }   
        int total=0;
        for(int i=0;i<n;i++){
            if(i!=num) total+=side[i];
        }
        if(total>max){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] side=new int[n];
        int max=-1;
        int num=-1;
        for(int i=0;i<n;i++){
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        }   
        int total=0;
        for(int i=0;i<n;i++){
            if(i!=num) total+=side[i];
        }
        if(total>max){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n=scn.nextInt(); n scn.nextInt() scn.nextInt scn int[] side=new int[n]; side new int[n] n int max=-1; max -1 1 int num=-1; num -1 1 for(int i=0;i<n;i++){
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        } {
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        } side[i]=scn.nextInt() side[i] side i scn.nextInt() scn.nextInt scn if(side[i]>max){ 
                max=side[i];
                num=i;
            } side[i]>max side[i] side i max { 
                max=side[i];
                num=i;
            } max=side[i] max side[i] side i num=i num i int total=0; total 0 for(int i=0;i<n;i++){
            if(i!=num) total+=side[i];
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(i!=num) total+=side[i];
        } {
            if(i!=num) total+=side[i];
        } if(i!=num) total+=side[i]; i!=num i num total+=side[i] total side[i] side i if(total>max){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        } total>max total max {
            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
import java.util.*;
class Main{
    public static void main(String[] args) {
        Scanner scn=new Scanner(System.in);
        int n=scn.nextInt();
        int[] side=new int[n];
        int max=-1;
        int num=-1;
        for(int i=0;i<n;i++){
            side[i]=scn.nextInt();
            if(side[i]>max){ 
                max=side[i];
                num=i;
            }
        }   
        int total=0;
        for(int i=0;i<n;i++){
            if(i!=num) total+=side[i];
        }
        if(total>max){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}
