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

public class Main{
  public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

      Arrays.sort(l);
      int lsum=0;
      for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      }
      if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
                
      }catch (Exception e) {
      System.out.println("out");
    }
  }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

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

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

      Arrays.sort(l);
      int lsum=0;
      for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      }
      if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
                
      }catch (Exception e) {
      System.out.println("out");
    }
  } main {
    try {
      Scanner sc = new Scanner(System.in);
      int n;

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

      Arrays.sort(l);
      int lsum=0;
      for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      }
      if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
                
      }catch (Exception e) {
      System.out.println("out");
    }
  } try {
      Scanner sc = new Scanner(System.in);
      int n;

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

      Arrays.sort(l);
      int lsum=0;
      for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      }
      if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
                
      }catch (Exception e) {
      System.out.println("out");
    } catch (Exception e) {
      System.out.println("out");
    } Exception e {
      System.out.println("out");
    } System.out.println("out") System.out.println System.out System System.out "out" {
      Scanner sc = new Scanner(System.in);
      int n;

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

      Arrays.sort(l);
      int lsum=0;
      for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      }
      if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
                
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n; n n=Integer.parseInt(sc.next()) n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] l = new int[n]; l new int[n] n for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        l[i]=Integer.parseInt(sc.next());
      } {
        l[i]=Integer.parseInt(sc.next());
      } l[i]=Integer.parseInt(sc.next()) l[i] l i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(l) Arrays.sort Arrays l int lsum=0; lsum 0 for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
        lsum=lsum+l[i];
      } {
        lsum=lsum+l[i];
      } lsum=lsum+l[i] lsum lsum+l[i] lsum l[i] l i if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      } lsum>l[n-1] lsum l[n-1] l n-1 n 1 {
        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){
    try {
      Scanner sc = new Scanner(System.in);
      int n;

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

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

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

      Arrays.sort(l);
      int lsum=0;
      for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      }
      if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
                
      }catch (Exception e) {
      System.out.println("out");
    }
  }
} Main
import java.io.*;
import java.util.*;

public class Main{
  public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;

      n=Integer.parseInt(sc.next());
      int[] l = new int[n];
      for(int i=0; i<n; i++){
        l[i]=Integer.parseInt(sc.next());
      }

      Arrays.sort(l);
      int lsum=0;
      for(int i=0; i<n-1; i++){
        lsum=lsum+l[i];
      }
      if(lsum>l[n-1]){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
                
      }catch (Exception e) {
      System.out.println("out");
    }
  }
}
