import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),max=0,total=0;
		for(int i=0; i<N; i++) {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		}
		System.out.println(max<total?"Yes":"No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),max=0,total=0;
		for(int i=0; i<N; i++) {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		}
		System.out.println(max<total?"Yes":"No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),max=0,total=0;
		for(int i=0; i<N; i++) {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		}
		System.out.println(max<total?"Yes":"No");
	} main {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),max=0,total=0;
		for(int i=0; i<N; i++) {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		}
		System.out.println(max<total?"Yes":"No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt() N sc.nextInt() sc.nextInt sc max=0 max 0 total=0; total 0 for(int i=0; i<N; i++) {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		} {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		} int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			} max < l max l {
				total+=max;
				max=l;
			} total+=max total max max=l max l {
				total+=l;
			} total+=l total l System.out.println(max<total?"Yes":"No") System.out.println System.out System System.out max<total?"Yes":"No" max<total max total "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),max=0,total=0;
		for(int i=0; i<N; i++) {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		}
		System.out.println(max<total?"Yes":"No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N=sc.nextInt(),max=0,total=0;
		for(int i=0; i<N; i++) {
			int l = sc.nextInt();
			if(max < l) {
				total+=max;
				max=l;
			}else {
				total+=l;
			}
		}
		System.out.println(max<total?"Yes":"No");
	}
} Main
import java.util.Scanner;

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