import java.util.Scanner;

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();
    }
    Main abc117B = new Main();
    if(abc117B.solve(l)){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }

  public boolean solve(int[] l) {
    int max = 0;
    int sum = 0;
    for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    }
    return sum > max;
  }
} import java.util.Scanner; Scanner java.util 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();
    }
    Main abc117B = new Main();
    if(abc117B.solve(l)){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }

  public boolean solve(int[] l) {
    int max = 0;
    int sum = 0;
    for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    }
    return sum > max;
  }
} 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();
    }
    Main abc117B = new Main();
    if(abc117B.solve(l)){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } 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();
    }
    Main abc117B = new Main();
    if(abc117B.solve(l)){
      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 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 Main abc117B = new Main(); abc117B new Main() if(abc117B.solve(l)){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } abc117B.solve(l) abc117B.solve abc117B l {
      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 boolean solve(int[] l) {
    int max = 0;
    int sum = 0;
    for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    }
    return sum > max;
  } solve {
    int max = 0;
    int sum = 0;
    for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    }
    return sum > max;
  } int max = 0; max 0 int sum = 0; sum 0 for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    } int i = 0; int i = 0; i 0 i < l.length i l.length l l.length i++ i++ i {
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    } {
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    } if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      } l[i] > max l[i] l i max {
        sum += max;
        max = l[i];
      } sum += max sum max max = l[i] max l[i] l i {
        sum += l[i];
      } sum += l[i] sum l[i] l i return sum > max; sum > max sum max int[] l l 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();
    }
    Main abc117B = new Main();
    if(abc117B.solve(l)){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }

  public boolean solve(int[] l) {
    int max = 0;
    int sum = 0;
    for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    }
    return sum > max;
  }
} 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();
    }
    Main abc117B = new Main();
    if(abc117B.solve(l)){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }

  public boolean solve(int[] l) {
    int max = 0;
    int sum = 0;
    for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    }
    return sum > max;
  }
} Main
import java.util.Scanner;

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();
    }
    Main abc117B = new Main();
    if(abc117B.solve(l)){
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }

  public boolean solve(int[] l) {
    int max = 0;
    int sum = 0;
    for(int i = 0; i < l.length; i++ ){
      if(l[i] > max ) {
        sum += max;
        max = l[i];
      } else {
        sum += l[i];
      }
    }
    return sum > max;
  }
}
