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

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.next());
		int[] l = new int[n];
		for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		}

		int[] sl = Arrays.stream(l)
				.sorted()
				.toArray();

		int sum = 0;
		for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		}

		String ans = null;

		if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		}
		System.out.println(ans);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.next());
		int[] l = new int[n];
		for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		}

		int[] sl = Arrays.stream(l)
				.sorted()
				.toArray();

		int sum = 0;
		for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		}

		String ans = null;

		if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.next());
		int[] l = new int[n];
		for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		}

		int[] sl = Arrays.stream(l)
				.sorted()
				.toArray();

		int sum = 0;
		for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		}

		String ans = null;

		if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		}
		System.out.println(ans);
	} main {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.next());
		int[] l = new int[n];
		for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		}

		int[] sl = Arrays.stream(l)
				.sorted()
				.toArray();

		int sum = 0;
		for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		}

		String ans = null;

		if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		}
		System.out.println(ans);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = Integer.parseInt(s.next()); n Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int[] l = new int[n]; l new int[n] n for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			l[i] = Integer.parseInt(s.next());
		} {
			l[i] = Integer.parseInt(s.next());
		} l[i] = Integer.parseInt(s.next()) l[i] l i Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int[] sl = Arrays.stream(l)
				.sorted()
				.toArray(); sl Arrays.stream(l)
				.sorted()
				.toArray() Arrays.stream(l)
				.sorted()
				.toArray Arrays.stream(l)
				.sorted() Arrays.stream(l)
				.sorted Arrays.stream(l) Arrays.stream Arrays l int sum = 0; sum 0 for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		} int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
			sum += sl[i];
		} {
			sum += sl[i];
		} sum += sl[i] sum sl[i] sl i String ans = null; ans null if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		} sum > sl[n - 1] sum sl[n - 1] sl n - 1 n 1 {
			ans = "Yes";
		} ans = "Yes" ans "Yes" {
			ans = "No";
		} ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.next());
		int[] l = new int[n];
		for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		}

		int[] sl = Arrays.stream(l)
				.sorted()
				.toArray();

		int sum = 0;
		for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		}

		String ans = null;

		if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.next());
		int[] l = new int[n];
		for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		}

		int[] sl = Arrays.stream(l)
				.sorted()
				.toArray();

		int sum = 0;
		for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		}

		String ans = null;

		if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		}
		System.out.println(ans);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int n = Integer.parseInt(s.next());
		int[] l = new int[n];
		for (int i = 0; i < n; i++) {
			l[i] = Integer.parseInt(s.next());
		}

		int[] sl = Arrays.stream(l)
				.sorted()
				.toArray();

		int sum = 0;
		for (int i = 0; i < n - 1; i++) {
			sum += sl[i];
		}

		String ans = null;

		if (sum > sl[n - 1]) {
			ans = "Yes";
		} else {
			ans = "No";
		}
		System.out.println(ans);
	}
}