import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max = 0;
		int num = 0;
		for(int i = 0; i < n; i++){
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		}
		if(max < num){
			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 max = 0;
		int num = 0;
		for(int i = 0; i < n; i++){
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		}
		if(max < num){
			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 max = 0;
		int num = 0;
		for(int i = 0; i < n; i++){
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		}
		if(max < num){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int max = 0;
		int num = 0;
		for(int i = 0; i < n; i++){
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		}
		if(max < num){
			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 max = 0; max 0 int num = 0; num 0 for(int i = 0; i < n; i++){
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		} {
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		} int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			} l > max l max {
				num = num + max;
				max = l;
			} num = num + max num num + max num max max = l max l {
				num = num + l;
			} num = num + l num num + l num l if(max < num){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		} max < num max num {
			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 max = 0;
		int num = 0;
		for(int i = 0; i < n; i++){
			int l = sc.nextInt();
			if(l > max){
				num = num + max;
				max = l;
			}else{
				num = num + l;
			}
		}
		if(max < num){
			System.out.print("Yes");
		}else{
			System.out.print("No");
		}
	}
}
