import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();
    int sum = 0;
    int max = -1;
    for(int i = 0; i < n; i++){
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    }
    if(sum - max > max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();
    int sum = 0;
    int max = -1;
    for(int i = 0; i < n; i++){
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    }
    if(sum - max > max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main public static void main(String[] args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();
    int sum = 0;
    int max = -1;
    for(int i = 0; i < n; i++){
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    }
    if(sum - max > max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();
    int sum = 0;
    int max = -1;
    for(int i = 0; i < n; i++){
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    }
    if(sum - max > max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int sum = 0; sum 0 int max = -1; max -1 1 for(int i = 0; i < n; i++){
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    } {
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    } int input = s.nextInt(); input s.nextInt() s.nextInt s sum = sum + input sum sum + input sum input if(input > max){
        max = input;
      } input > max input max {
        max = input;
      } max = input max input 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
import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt();
    int sum = 0;
    int max = -1;
    for(int i = 0; i < n; i++){
      int input = s.nextInt();
      sum = sum + input;
      if(input > max){
        max = input;
      }
    }
    if(sum - max > max){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}