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

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

  }

}
 import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main{
  
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int arr[] = new int[n];
    for(int i = 0;i < n;i++){
      arr[i] = sc.nextInt();
    }
    
    Arrays.sort(arr);
    
    int x = 0;
    for(int i = 0;i < n-1;i++){
      x += arr[i];
    }
    if(arr[n-1]>x){
      System.out.println("No");
    }
    else if(arr[n-1]==x){
      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 arr[] = new int[n];
    for(int i = 0;i < n;i++){
      arr[i] = sc.nextInt();
    }
    
    Arrays.sort(arr);
    
    int x = 0;
    for(int i = 0;i < n-1;i++){
      x += arr[i];
    }
    if(arr[n-1]>x){
      System.out.println("No");
    }
    else if(arr[n-1]==x){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }

  } main {
    
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int arr[] = new int[n];
    for(int i = 0;i < n;i++){
      arr[i] = sc.nextInt();
    }
    
    Arrays.sort(arr);
    
    int x = 0;
    for(int i = 0;i < n-1;i++){
      x += arr[i];
    }
    if(arr[n-1]>x){
      System.out.println("No");
    }
    else if(arr[n-1]==x){
      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 arr[] = new int[n]; arr new int[n] n for(int i = 0;i < n;i++){
      arr[i] = sc.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      arr[i] = sc.nextInt();
    } {
      arr[i] = sc.nextInt();
    } arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc Arrays.sort(arr) Arrays.sort Arrays arr int x = 0; x 0 for(int i = 0;i < n-1;i++){
      x += arr[i];
    } int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
      x += arr[i];
    } {
      x += arr[i];
    } x += arr[i] x arr[i] arr i if(arr[n-1]>x){
      System.out.println("No");
    }
    else if(arr[n-1]==x){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    } arr[n-1]>x arr[n-1] arr n-1 n 1 x {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" if(arr[n-1]==x){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    } arr[n-1]==x arr[n-1] arr n-1 n 1 x {
      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
import java.util.*;
import java.lang.*;
import java.io.*;

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

  }

}

