
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

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

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

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] length = new int[n];
		for (int i = 0; i < length.length; i++) {
			length[i] = scan.nextInt();
		}
		
		Arrays.sort(length);
		int sum = 0;
		for (int i = 0; i < length.length - 1; i++) {
			sum += length[i];
		}
		
		if (sum > length[length.length - 1]) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
		scan.close();
	} main {

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

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

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] length = new int[n];
		for (int i = 0; i < length.length; i++) {
			length[i] = scan.nextInt();
		}
		
		Arrays.sort(length);
		int sum = 0;
		for (int i = 0; i < length.length - 1; i++) {
			sum += length[i];
		}
		
		if (sum > length[length.length - 1]) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
		scan.close();
	}
} Main

import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int[] length = new int[n];
		for (int i = 0; i < length.length; i++) {
			length[i] = scan.nextInt();
		}
		
		Arrays.sort(length);
		int sum = 0;
		for (int i = 0; i < length.length - 1; i++) {
			sum += length[i];
		}
		
		if (sum > length[length.length - 1]) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
		scan.close();
	}
}