import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		final ArrayList<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);
		Collections.reverse(list);

		final int max = list.get(0);
		list.remove(0);

		int total = 0;
		for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		}

		java.lang.System.out.println(max < total ? "Yes" : "No");

	}

} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		final ArrayList<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);
		Collections.reverse(list);

		final int max = list.get(0);
		list.remove(0);

		int total = 0;
		for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		}

		java.lang.System.out.println(max < total ? "Yes" : "No");

	}

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

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		final ArrayList<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);
		Collections.reverse(list);

		final int max = list.get(0);
		list.remove(0);

		int total = 0;
		for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		}

		java.lang.System.out.println(max < total ? "Yes" : "No");

	} main {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		final ArrayList<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);
		Collections.reverse(list);

		final int max = list.get(0);
		list.remove(0);

		int total = 0;
		for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		}

		java.lang.System.out.println(max < total ? "Yes" : "No");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc final ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			list.add(sc.nextInt());
		} {
			list.add(sc.nextInt());
		} list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list final int max = list.get(0); max list.get(0) list.get list 0 list.remove(0) list.remove list 0 int total = 0; total 0 for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		} int j = 0; int j = 0; j 0 j < list.size() j list.size() list.size list j++ j++ j {
			total = total + list.get(j);
		} {
			total = total + list.get(j);
		} total = total + list.get(j) total total + list.get(j) total list.get(j) list.get list j java.lang.System.out.println(max < total ? "Yes" : "No") java.lang.System.out.println java.lang.System.out java.lang.System java.lang java java.lang java.lang.System java.lang.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);

		final int n = sc.nextInt();

		final ArrayList<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);
		Collections.reverse(list);

		final int max = list.get(0);
		list.remove(0);

		int total = 0;
		for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		}

		java.lang.System.out.println(max < total ? "Yes" : "No");

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		final ArrayList<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);
		Collections.reverse(list);

		final int max = list.get(0);
		list.remove(0);

		int total = 0;
		for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		}

		java.lang.System.out.println(max < total ? "Yes" : "No");

	}

} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		final ArrayList<Integer> list = new ArrayList<Integer>();
		for (int i = 0; i < n; i++) {
			list.add(sc.nextInt());
		}

		Collections.sort(list);
		Collections.reverse(list);

		final int max = list.get(0);
		list.remove(0);

		int total = 0;
		for (int j = 0; j < list.size(); j++) {
			total = total + list.get(j);
		}

		java.lang.System.out.println(max < total ? "Yes" : "No");

	}

}
