import java.util.*;

public class  Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int N,sum = 0;
    ArrayList<Integer> L = new ArrayList<Integer>();
    N = s.nextInt();
    for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    }
    Collections.sort(L);
    sum -= L.get(N - 1);
    if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} import java.util.*; util.* java public class  Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int N,sum = 0;
    ArrayList<Integer> L = new ArrayList<Integer>();
    N = s.nextInt();
    for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    }
    Collections.sort(L);
    sum -= L.get(N - 1);
    if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} Main public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int N,sum = 0;
    ArrayList<Integer> L = new ArrayList<Integer>();
    N = s.nextInt();
    for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    }
    Collections.sort(L);
    sum -= L.get(N - 1);
    if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No");
  } main {
    Scanner s = new Scanner(System.in);
    int N,sum = 0;
    ArrayList<Integer> L = new ArrayList<Integer>();
    N = s.nextInt();
    for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    }
    Collections.sort(L);
    sum -= L.get(N - 1);
    if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No");
  } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N N sum = 0; sum 0 ArrayList<Integer> L = new ArrayList<Integer>(); L new ArrayList<Integer>() N = s.nextInt() N s.nextInt() s.nextInt s for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      L.add(s.nextInt());
      sum += L.get(i);
    } {
      L.add(s.nextInt());
      sum += L.get(i);
    } L.add(s.nextInt()) L.add L s.nextInt() s.nextInt s sum += L.get(i) sum L.get(i) L.get L i Collections.sort(L) Collections.sort Collections L sum -= L.get(N - 1) sum L.get(N - 1) L.get L N - 1 N 1 if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No"); L.get(N - 1) < sum L.get(N - 1) L.get L N - 1 N 1 sum System.out.println("Yes") System.out.println System.out System System.out "Yes" 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 s = new Scanner(System.in);
    int N,sum = 0;
    ArrayList<Integer> L = new ArrayList<Integer>();
    N = s.nextInt();
    for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    }
    Collections.sort(L);
    sum -= L.get(N - 1);
    if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} public class  Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int N,sum = 0;
    ArrayList<Integer> L = new ArrayList<Integer>();
    N = s.nextInt();
    for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    }
    Collections.sort(L);
    sum -= L.get(N - 1);
    if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} Main
import java.util.*;

public class  Main {
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    int N,sum = 0;
    ArrayList<Integer> L = new ArrayList<Integer>();
    N = s.nextInt();
    for(int i = 0; i < N ;i++){
      L.add(s.nextInt());
      sum += L.get(i);
    }
    Collections.sort(L);
    sum -= L.get(N - 1);
    if(L.get(N - 1) < sum)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
}