import java.util.*;
 
class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] p = new int[N];
		for (int i=0;i<N;i++){
			p[i]=sc.nextInt();
		}
		Arrays.sort(p);
      int x = 0;
      int w = p[N-1];
      for(int i =0;i<N-1;i++){
        x = x + p[i];
      }
      	if(w<x){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }

	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] p = new int[N];
		for (int i=0;i<N;i++){
			p[i]=sc.nextInt();
		}
		Arrays.sort(p);
      int x = 0;
      int w = p[N-1];
      for(int i =0;i<N-1;i++){
        x = x + p[i];
      }
      	if(w<x){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] p = new int[N];
		for (int i=0;i<N;i++){
			p[i]=sc.nextInt();
		}
		Arrays.sort(p);
      int x = 0;
      int w = p[N-1];
      for(int i =0;i<N-1;i++){
        x = x + p[i];
      }
      	if(w<x){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] p = new int[N];
		for (int i=0;i<N;i++){
			p[i]=sc.nextInt();
		}
		Arrays.sort(p);
      int x = 0;
      int w = p[N-1];
      for(int i =0;i<N-1;i++){
        x = x + p[i];
      }
      	if(w<x){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] p = new int[N]; p new int[N] N for (int i=0;i<N;i++){
			p[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			p[i]=sc.nextInt();
		} {
			p[i]=sc.nextInt();
		} p[i]=sc.nextInt() p[i] p i sc.nextInt() sc.nextInt sc Arrays.sort(p) Arrays.sort Arrays p int x = 0; x 0 int w = p[N-1]; w p[N-1] p N-1 N 1 for(int i =0;i<N-1;i++){
        x = x + p[i];
      } int i =0; int i =0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
        x = x + p[i];
      } {
        x = x + p[i];
      } x = x + p[i] x x + p[i] x p[i] p i if(w<x){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        } w<x w x {
          System.out.print("Yes");
        } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
          System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String[] args args
import java.util.*;
 
class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] p = new int[N];
		for (int i=0;i<N;i++){
			p[i]=sc.nextInt();
		}
		Arrays.sort(p);
      int x = 0;
      int w = p[N-1];
      for(int i =0;i<N-1;i++){
        x = x + p[i];
      }
      	if(w<x){
          System.out.print("Yes");
        }else{
          System.out.print("No");
        }

	}
}