import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	Arrays.sort(a);
      	int sum = 0;
      	for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		}
      	if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        }
      	
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	Arrays.sort(a);
      	int sum = 0;
      	for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		}
      	if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        }
      	
	}
} Main public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	Arrays.sort(a);
      	int sum = 0;
      	for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		}
      	if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        }
      	
	} main {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	Arrays.sort(a);
      	int sum = 0;
      	for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		}
      	if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        }
      	
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int[] a = new int[n]; a new int[n] n for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		} int i=0; int i=0; i 0 i<a.length i a.length a a.length ++i ++i i {
			a[i] = scn.nextInt();
		} {
			a[i] = scn.nextInt();
		} a[i] = scn.nextInt() a[i] a i scn.nextInt() scn.nextInt scn Arrays.sort(a) Arrays.sort Arrays a int sum = 0; sum 0 for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		} int i=0; int i=0; i 0 i<a.length-1 i a.length-1 a.length a a.length 1 ++i ++i i {
			sum = sum + a[i];
		} {
			sum = sum + a[i];
		} sum = sum + a[i] sum sum + a[i] sum a[i] a i if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        } sum<=a[a.length-1] sum a[a.length-1] a a.length-1 a.length a a.length 1 {
          System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" {
          System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	Arrays.sort(a);
      	int sum = 0;
      	for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		}
      	if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        }
      	
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	Arrays.sort(a);
      	int sum = 0;
      	for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		}
      	if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        }
      	
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; ++i){
			a[i] = scn.nextInt();
		}
      	Arrays.sort(a);
      	int sum = 0;
      	for(int i=0; i<a.length-1; ++i){
			sum = sum + a[i];
		}
      	if(sum<=a[a.length-1]){
          System.out.println("No");
        }else{
          System.out.println("Yes");
        }
      	
	}
}
