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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 整数の入力
		int n = sc.nextInt();
		ArrayList<Integer> aryNum = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		}

		Collections.sort(aryNum, Collections.reverseOrder());

		int maxLength = aryNum.get(0);
		aryNum.remove(0);

		int sumLength = 0;

		for (int val : aryNum) {
			sumLength = sumLength + val;
		}

		if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util 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();
		ArrayList<Integer> aryNum = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		}

		Collections.sort(aryNum, Collections.reverseOrder());

		int maxLength = aryNum.get(0);
		aryNum.remove(0);

		int sumLength = 0;

		for (int val : aryNum) {
			sumLength = sumLength + val;
		}

		if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 整数の入力
		int n = sc.nextInt();
		ArrayList<Integer> aryNum = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		}

		Collections.sort(aryNum, Collections.reverseOrder());

		int maxLength = aryNum.get(0);
		aryNum.remove(0);

		int sumLength = 0;

		for (int val : aryNum) {
			sumLength = sumLength + val;
		}

		if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		// 整数の入力
		int n = sc.nextInt();
		ArrayList<Integer> aryNum = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		}

		Collections.sort(aryNum, Collections.reverseOrder());

		int maxLength = aryNum.get(0);
		aryNum.remove(0);

		int sumLength = 0;

		for (int val : aryNum) {
			sumLength = sumLength + val;
		}

		if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc ArrayList<Integer> aryNum = new ArrayList<Integer>(); aryNum new ArrayList<Integer>() for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			aryNum.add(sc.nextInt());
		} {
			aryNum.add(sc.nextInt());
		} aryNum.add(sc.nextInt()) aryNum.add aryNum sc.nextInt() sc.nextInt sc Collections.sort(aryNum, Collections.reverseOrder()) Collections.sort Collections aryNum Collections.reverseOrder() Collections.reverseOrder Collections int maxLength = aryNum.get(0); maxLength aryNum.get(0) aryNum.get aryNum 0 aryNum.remove(0) aryNum.remove aryNum 0 int sumLength = 0; sumLength 0 for (int val : aryNum) {
			sumLength = sumLength + val;
		} int val aryNum {
			sumLength = sumLength + val;
		} {
			sumLength = sumLength + val;
		} sumLength = sumLength + val sumLength sumLength + val sumLength val if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} maxLength < sumLength maxLength sumLength {
			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" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 整数の入力
		int n = sc.nextInt();
		ArrayList<Integer> aryNum = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		}

		Collections.sort(aryNum, Collections.reverseOrder());

		int maxLength = aryNum.get(0);
		aryNum.remove(0);

		int sumLength = 0;

		for (int val : aryNum) {
			sumLength = sumLength + val;
		}

		if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 整数の入力
		int n = sc.nextInt();
		ArrayList<Integer> aryNum = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		}

		Collections.sort(aryNum, Collections.reverseOrder());

		int maxLength = aryNum.get(0);
		aryNum.remove(0);

		int sumLength = 0;

		for (int val : aryNum) {
			sumLength = sumLength + val;
		}

		if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 整数の入力
		int n = sc.nextInt();
		ArrayList<Integer> aryNum = new ArrayList<Integer>();

		for (int i = 0; i < n; i++) {
			aryNum.add(sc.nextInt());
		}

		Collections.sort(aryNum, Collections.reverseOrder());

		int maxLength = aryNum.get(0);
		aryNum.remove(0);

		int sumLength = 0;

		for (int val : aryNum) {
			sumLength = sumLength + val;
		}

		if (maxLength < sumLength) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}

		sc.close();
	}
}