import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    double width[]=new double[N];
    double max=width[0];
    double sum=0;
    for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    }
    for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    }
    for(int j=0; j<N; j++){
    	sum+=width[j];
    }
    
    if(sum-max>max){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}
 import java.util.*; util.* java public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    double width[]=new double[N];
    double max=width[0];
    double sum=0;
    for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    }
    for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    }
    for(int j=0; j<N; j++){
    	sum+=width[j];
    }
    
    if(sum-max>max){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    double width[]=new double[N];
    double max=width[0];
    double sum=0;
    for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    }
    for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    }
    for(int j=0; j<N; j++){
    	sum+=width[j];
    }
    
    if(sum-max>max){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    double width[]=new double[N];
    double max=width[0];
    double sum=0;
    for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    }
    for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    }
    for(int j=0; j<N; j++){
    	sum+=width[j];
    }
    
    if(sum-max>max){
    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 double width[]=new double[N]; width new double[N] N double max=width[0]; max width[0] width 0 double sum=0; sum 0 for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      width[i]=sc.nextDouble();
    } {
      width[i]=sc.nextDouble();
    } width[i]=sc.nextDouble() width[i] width i sc.nextDouble() sc.nextDouble sc for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      if(width[i]>max){
      	max=width[i];
      }
    } {
      if(width[i]>max){
      	max=width[i];
      }
    } if(width[i]>max){
      	max=width[i];
      } width[i]>max width[i] width i max {
      	max=width[i];
      } max=width[i] max width[i] width i for(int j=0; j<N; j++){
    	sum+=width[j];
    } int j=0; int j=0; j 0 j<N j N j++ j++ j {
    	sum+=width[j];
    } {
    	sum+=width[j];
    } sum+=width[j] sum width[j] width j if(sum-max>max){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    } sum-max>max sum-max sum max 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 public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    double width[]=new double[N];
    double max=width[0];
    double sum=0;
    for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    }
    for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    }
    for(int j=0; j<N; j++){
    	sum+=width[j];
    }
    
    if(sum-max>max){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    double width[]=new double[N];
    double max=width[0];
    double sum=0;
    for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    }
    for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    }
    for(int j=0; j<N; j++){
    	sum+=width[j];
    }
    
    if(sum-max>max){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    double width[]=new double[N];
    double max=width[0];
    double sum=0;
    for(int i=0;i<N;i++){
      width[i]=sc.nextDouble();
    }
    for(int i=0;i<N;i++){
      if(width[i]>max){
      	max=width[i];
      }
    }
    for(int j=0; j<N; j++){
    	sum+=width[j];
    }
    
    if(sum-max>max){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

