/*
 * Click `Run` to execute the snippet below!
 */

import java.io.*;
import java.util.*;

/*
 * To execute Java, please define "static void main" on a class
 * named Solution.
 *
 * If you need more classes, simply define them inline.
 */

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int L[] = new int[N];
    for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    }
    Arrays.sort(L);
    int S = 0;
    for(int i = 0; i<N-1; i++){
       S += L[i];
    }
    if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    }
  }
}


































 import java.io.*; io.* java import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int L[] = new int[N];
    for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    }
    Arrays.sort(L);
    int S = 0;
    for(int i = 0; i<N-1; i++){
       S += L[i];
    }
    if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int L[] = new int[N];
    for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    }
    Arrays.sort(L);
    int S = 0;
    for(int i = 0; i<N-1; i++){
       S += L[i];
    }
    if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int L[] = new int[N];
    for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    }
    Arrays.sort(L);
    int S = 0;
    for(int i = 0; i<N-1; i++){
       S += L[i];
    }
    if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    }
  } 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 for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
      L[i] = sc.nextInt(); 
    } {
      L[i] = sc.nextInt(); 
    } L[i] = sc.nextInt() L[i] L i sc.nextInt() sc.nextInt sc Arrays.sort(L) Arrays.sort Arrays L int S = 0; S 0 for(int i = 0; i<N-1; i++){
       S += L[i];
    } int i = 0; int i = 0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
       S += L[i];
    } {
       S += L[i];
    } S += L[i] S L[i] L i if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    } L[N-1] >= S L[N-1] L N-1 N 1 S {
      System.out.println("No"); 
    } System.out.println("No") System.out.println System.out System System.out "No" {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int L[] = new int[N];
    for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    }
    Arrays.sort(L);
    int S = 0;
    for(int i = 0; i<N-1; i++){
       S += L[i];
    }
    if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int L[] = new int[N];
    for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    }
    Arrays.sort(L);
    int S = 0;
    for(int i = 0; i<N-1; i++){
       S += L[i];
    }
    if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    }
  }
} Main
/*
 * Click `Run` to execute the snippet below!
 */

import java.io.*;
import java.util.*;

/*
 * To execute Java, please define "static void main" on a class
 * named Solution.
 *
 * If you need more classes, simply define them inline.
 */

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int L[] = new int[N];
    for(int i = 0; i<N; i++){
      L[i] = sc.nextInt(); 
    }
    Arrays.sort(L);
    int S = 0;
    for(int i = 0; i<N-1; i++){
       S += L[i];
    }
    if(L[N-1] >= S){
      System.out.println("No"); 
    }
    else{
      System.out.println("Yes");
    }
  }
}



































