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