import java.util.*;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int n= scan.nextInt();
    ArrayList<Integer> a = new ArrayList<>();
    for(int i =0 ; i < n ; i++){
      a.add(scan.nextInt());
    }
    int max = a.remove(a.indexOf(Collections.max(a, null)));
    int sum = 0;
    for(int x : a){
      sum+=x;
    }
    if(sum>max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int n= scan.nextInt();
    ArrayList<Integer> a = new ArrayList<>();
    for(int i =0 ; i < n ; i++){
      a.add(scan.nextInt());
    }
    int max = a.remove(a.indexOf(Collections.max(a, null)));
    int sum = 0;
    for(int x : a){
      sum+=x;
    }
    if(sum>max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int n= scan.nextInt();
    ArrayList<Integer> a = new ArrayList<>();
    for(int i =0 ; i < n ; i++){
      a.add(scan.nextInt());
    }
    int max = a.remove(a.indexOf(Collections.max(a, null)));
    int sum = 0;
    for(int x : a){
      sum+=x;
    }
    if(sum>max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    
    Scanner scan = new Scanner(System.in);
    int n= scan.nextInt();
    ArrayList<Integer> a = new ArrayList<>();
    for(int i =0 ; i < n ; i++){
      a.add(scan.nextInt());
    }
    int max = a.remove(a.indexOf(Collections.max(a, null)));
    int sum = 0;
    for(int x : a){
      sum+=x;
    }
    if(sum>max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n= scan.nextInt(); n scan.nextInt() scan.nextInt scan ArrayList<Integer> a = new ArrayList<>(); a new ArrayList<>() for(int i =0 ; i < n ; i++){
      a.add(scan.nextInt());
    } int i =0 ; int i =0 ; i 0 i < n i n i++ i++ i {
      a.add(scan.nextInt());
    } {
      a.add(scan.nextInt());
    } a.add(scan.nextInt()) a.add a scan.nextInt() scan.nextInt scan int max = a.remove(a.indexOf(Collections.max(a, null))); max a.remove(a.indexOf(Collections.max(a, null))) a.remove a a.indexOf(Collections.max(a, null)) a.indexOf a Collections.max(a, null) Collections.max Collections a null int sum = 0; sum 0 for(int x : a){
      sum+=x;
    } int x a {
      sum+=x;
    } {
      sum+=x;
    } sum+=x sum x if(sum>max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    } sum>max sum 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 scan = new Scanner(System.in);
    int n= scan.nextInt();
    ArrayList<Integer> a = new ArrayList<>();
    for(int i =0 ; i < n ; i++){
      a.add(scan.nextInt());
    }
    int max = a.remove(a.indexOf(Collections.max(a, null)));
    int sum = 0;
    for(int x : a){
      sum+=x;
    }
    if(sum>max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}
