import java.util.*;
public class Main {
	public static void main(String[] args) {
		
        Scanner scan = new Scanner(System.in);
        
        String str1 = scan.nextLine();
        
        
        int n = Integer.parseInt(str1);
        int[] l = new int[n];
        for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        }
        
        int max = 0 ;
        int hen  = 0;
        
        for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        }
        String ans ;
        if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        }
        

		System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		
        Scanner scan = new Scanner(System.in);
        
        String str1 = scan.nextLine();
        
        
        int n = Integer.parseInt(str1);
        int[] l = new int[n];
        for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        }
        
        int max = 0 ;
        int hen  = 0;
        
        for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        }
        String ans ;
        if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        }
        

		System.out.println(ans);
    }
} Main public static void main(String[] args) {
		
        Scanner scan = new Scanner(System.in);
        
        String str1 = scan.nextLine();
        
        
        int n = Integer.parseInt(str1);
        int[] l = new int[n];
        for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        }
        
        int max = 0 ;
        int hen  = 0;
        
        for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        }
        String ans ;
        if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        }
        

		System.out.println(ans);
    } main {
		
        Scanner scan = new Scanner(System.in);
        
        String str1 = scan.nextLine();
        
        
        int n = Integer.parseInt(str1);
        int[] l = new int[n];
        for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        }
        
        int max = 0 ;
        int hen  = 0;
        
        for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        }
        String ans ;
        if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        }
        

		System.out.println(ans);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str1 = scan.nextLine(); str1 scan.nextLine() scan.nextLine scan int n = Integer.parseInt(str1); n Integer.parseInt(str1) Integer.parseInt Integer str1 int[] l = new int[n]; l new int[n] n for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        } int i = 0 ; int i = 0 ; i 0 i<n i n i++ i++ i {
        	l[i]= Integer.parseInt(scan.next());
        } {
        	l[i]= Integer.parseInt(scan.next());
        } l[i]= Integer.parseInt(scan.next()) l[i] l i Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int max = 0 ; max 0 int hen  = 0; hen 0 for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        } int i l {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        } {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        } if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	} i>max i max {
        		hen += max;
        		max=i;
        	} hen += max hen max max=i max i {
        		hen +=i;
        	} hen +=i hen i String ans ; ans if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        } max<hen max hen {
        	ans = "Yes";
        } ans = "Yes" ans "Yes" {
        	ans = "No";
        } ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		
        Scanner scan = new Scanner(System.in);
        
        String str1 = scan.nextLine();
        
        
        int n = Integer.parseInt(str1);
        int[] l = new int[n];
        for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        }
        
        int max = 0 ;
        int hen  = 0;
        
        for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        }
        String ans ;
        if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        }
        

		System.out.println(ans);
    }
} public class Main {
	public static void main(String[] args) {
		
        Scanner scan = new Scanner(System.in);
        
        String str1 = scan.nextLine();
        
        
        int n = Integer.parseInt(str1);
        int[] l = new int[n];
        for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        }
        
        int max = 0 ;
        int hen  = 0;
        
        for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        }
        String ans ;
        if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        }
        

		System.out.println(ans);
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) {
		
        Scanner scan = new Scanner(System.in);
        
        String str1 = scan.nextLine();
        
        
        int n = Integer.parseInt(str1);
        int[] l = new int[n];
        for (int i = 0 ; i<n ;i++) {
        	l[i]= Integer.parseInt(scan.next());
        }
        
        int max = 0 ;
        int hen  = 0;
        
        for (int i :l) {
        	if(i>max) {
        		hen += max;
        		max=i;
        	}else {
        		hen +=i;
        	}
        }
        String ans ;
        if (max<hen) {
        	ans = "Yes";
        }else {
        	ans = "No";
        }
        

		System.out.println(ans);
    }
}