import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	 int N = sc.nextInt();
         int L[]= new int[N];
         int set=0;
         int total =0;
         int hoge =0;
         for(int i = 0;i<N;i++){
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         }

         if(total>set){
        	 System.out.println("Yes");
         }else{
        	 System.out.println("No");
         }






    }

} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	 int N = sc.nextInt();
         int L[]= new int[N];
         int set=0;
         int total =0;
         int hoge =0;
         for(int i = 0;i<N;i++){
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         }

         if(total>set){
        	 System.out.println("Yes");
         }else{
        	 System.out.println("No");
         }






    }

} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	 int N = sc.nextInt();
         int L[]= new int[N];
         int set=0;
         int total =0;
         int hoge =0;
         for(int i = 0;i<N;i++){
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         }

         if(total>set){
        	 System.out.println("Yes");
         }else{
        	 System.out.println("No");
         }






    } main {
    	Scanner sc = new Scanner(System.in);
    	 int N = sc.nextInt();
         int L[]= new int[N];
         int set=0;
         int total =0;
         int hoge =0;
         for(int i = 0;i<N;i++){
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         }

         if(total>set){
        	 System.out.println("Yes");
         }else{
        	 System.out.println("No");
         }






    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int L[]= new int[N]; L new int[N] N int set=0; set 0 int total =0; total 0 int hoge =0; hoge 0 for(int i = 0;i<N;i++){
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         } {
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         } L[i]=sc.nextInt() L[i] L i sc.nextInt() sc.nextInt sc hoge = L[0] hoge L[0] L 0 if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           } L[i]>set L[i] L i set {
        	   total += set;
        	   set = L[i];

           } total += set total set set = L[i] set L[i] L i {
        	   total += L[i];
           } total += L[i] total L[i] L i if(total>set){
        	 System.out.println("Yes");
         }else{
        	 System.out.println("No");
         } total>set total set {
        	 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.Scanner;

class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	 int N = sc.nextInt();
         int L[]= new int[N];
         int set=0;
         int total =0;
         int hoge =0;
         for(int i = 0;i<N;i++){
        	 L[i]=sc.nextInt();
        	 hoge = L[0];
           if(L[i]>set){
        	   total += set;
        	   set = L[i];

           }else{
        	   total += L[i];
           }
         }

         if(total>set){
        	 System.out.println("Yes");
         }else{
        	 System.out.println("No");
         }






    }

}