
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] len = new int[n];

    for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    }

    Arrays.sort(len);

    int max = len[len.length-1];
    int sum = 0;
    for (int i=0;i<n-1;i++) {
      sum+=len[i];
    }
    if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }

  }

} import java.io.FileNotFoundException; FileNotFoundException java.io import java.io.FileReader; FileReader java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] len = new int[n];

    for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    }

    Arrays.sort(len);

    int max = len[len.length-1];
    int sum = 0;
    for (int i=0;i<n-1;i++) {
      sum+=len[i];
    }
    if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }

  }

} Main public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] len = new int[n];

    for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    }

    Arrays.sort(len);

    int max = len[len.length-1];
    int sum = 0;
    for (int i=0;i<n-1;i++) {
      sum+=len[i];
    }
    if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }

  } main {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] len = new int[n];

    for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    }

    Arrays.sort(len);

    int max = len[len.length-1];
    int sum = 0;
    for (int i=0;i<n-1;i++) {
      sum+=len[i];
    }
    if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }

  } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int n = cin.nextInt(); n cin.nextInt() cin.nextInt cin int[] len = new int[n]; len new int[n] n for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      len[i] = cin.nextInt();
    } {
      len[i] = cin.nextInt();
    } len[i] = cin.nextInt() len[i] len i cin.nextInt() cin.nextInt cin Arrays.sort(len) Arrays.sort Arrays len int max = len[len.length-1]; max len[len.length-1] len len.length-1 len.length len len.length 1 int sum = 0; sum 0 for (int i=0;i<n-1;i++) {
      sum+=len[i];
    } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
      sum+=len[i];
    } {
      sum+=len[i];
    } sum+=len[i] sum len[i] len i if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    } max < sum max sum {
      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 FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] len = new int[n];

    for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    }

    Arrays.sort(len);

    int max = len[len.length-1];
    int sum = 0;
    for (int i=0;i<n-1;i++) {
      sum+=len[i];
    }
    if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }

  }

} public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] len = new int[n];

    for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    }

    Arrays.sort(len);

    int max = len[len.length-1];
    int sum = 0;
    for (int i=0;i<n-1;i++) {
      sum+=len[i];
    }
    if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }

  }

} Main

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

  public static void main(String[] args) throws FileNotFoundException {

//    Scanner cin = new Scanner(new FileReader("input.txt"));
    Scanner cin = new Scanner(System.in);

    int n = cin.nextInt();
    int[] len = new int[n];

    for (int i=0;i<n;i++) {
      len[i] = cin.nextInt();
    }

    Arrays.sort(len);

    int max = len[len.length-1];
    int sum = 0;
    for (int i=0;i<n-1;i++) {
      sum+=len[i];
    }
    if (max < sum) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }

  }

}