import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    
    int m = 0, sum = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    }
    
    sum -= m;
    System.out.println(sum > m ? "Yes" : "No");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    
    int m = 0, sum = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    }
    
    sum -= m;
    System.out.println(sum > m ? "Yes" : "No");
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    
    int m = 0, sum = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    }
    
    sum -= m;
    System.out.println(sum > m ? "Yes" : "No");
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    
    int m = 0, sum = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    }
    
    sum -= m;
    System.out.println(sum > m ? "Yes" : "No");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int m = 0 m 0 sum = 0; sum 0 for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    } {
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    } int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sum += n sum n m = m < n ? n : m m m < n ? n : m m < n m n n m sum -= m sum m System.out.println(sum > m ? "Yes" : "No") System.out.println System.out System System.out sum > m ? "Yes" : "No" sum > m sum m "Yes" "No" String[]args args public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    
    int m = 0, sum = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    }
    
    sum -= m;
    System.out.println(sum > m ? "Yes" : "No");
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    
    int m = 0, sum = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    }
    
    sum -= m;
    System.out.println(sum > m ? "Yes" : "No");
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    
    int m = 0, sum = 0;
    for(int i = 0; i < N; i++){
      int n = Integer.parseInt(sc.next());
      sum += n;
      m = m < n ? n : m;
    }
    
    sum -= m;
    System.out.println(sum > m ? "Yes" : "No");
  }
}