import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int max = 0, sum = 0;
		for(int i = 0; i < num; i++){
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		}

		String ans = max < sum ? "Yes" : "No";
		System.out.println(ans);
	}
}

 import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int max = 0, sum = 0;
		for(int i = 0; i < num; i++){
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		}

		String ans = max < sum ? "Yes" : "No";
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int max = 0, sum = 0;
		for(int i = 0; i < num; i++){
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		}

		String ans = max < sum ? "Yes" : "No";
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int max = 0, sum = 0;
		for(int i = 0; i < num; i++){
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		}

		String ans = max < sum ? "Yes" : "No";
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int max = 0 max 0 sum = 0; sum 0 for(int i = 0; i < num; i++){
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		} {
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		} int len = sc.nextInt(); len sc.nextInt() sc.nextInt sc if(len > max){
				sum += max;
				max = len;
			}else sum += len; len > max len max {
				sum += max;
				max = len;
			} sum += max sum max max = len max len sum += len sum len String ans = max < sum ? "Yes" : "No"; ans max < sum ? "Yes" : "No" max < sum max sum "Yes" "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int max = 0, sum = 0;
		for(int i = 0; i < num; i++){
			int len = sc.nextInt();
			if(len > max){
				sum += max;
				max = len;
			}else sum += len;
		}

		String ans = max < sum ? "Yes" : "No";
		System.out.println(ans);
	}
}


