import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		List<Integer> L = new ArrayList<>(N);
		for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		}
		in.close();
		Collections.sort(L);
		long sum = 0;
		for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		}
		if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		List<Integer> L = new ArrayList<>(N);
		for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		}
		in.close();
		Collections.sort(L);
		long sum = 0;
		for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		}
		if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		List<Integer> L = new ArrayList<>(N);
		for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		}
		in.close();
		Collections.sort(L);
		long sum = 0;
		for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		}
		if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner in = new Scanner(System.in);
		int N = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		List<Integer> L = new ArrayList<>(N);
		for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		}
		in.close();
		Collections.sort(L);
		long sum = 0;
		for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		}
		if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int N = Integer.parseInt(in.nextLine()); N Integer.parseInt(in.nextLine()) Integer.parseInt Integer in.nextLine() in.nextLine in String[] tokens = in.nextLine().split(" "); tokens in.nextLine().split(" ") in.nextLine().split in.nextLine() in.nextLine in " " List<Integer> L = new ArrayList<>(N); L new ArrayList<>(N) for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		} int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
			L.add(Integer.parseInt(tokens[i]));
		} {
			L.add(Integer.parseInt(tokens[i]));
		} L.add(Integer.parseInt(tokens[i])) L.add L Integer.parseInt(tokens[i]) Integer.parseInt Integer tokens[i] tokens i in.close() in.close in Collections.sort(L) Collections.sort Collections L long sum = 0; sum 0 for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		} int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 ++i ++i i {
			sum += L.get(i);
		} {
			sum += L.get(i);
		} sum += L.get(i) sum L.get(i) L.get L i if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} sum > L.get(L.size() - 1) sum L.get(L.size() - 1) L.get L L.size() - 1 L.size() L.size L 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" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		List<Integer> L = new ArrayList<>(N);
		for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		}
		in.close();
		Collections.sort(L);
		long sum = 0;
		for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		}
		if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		List<Integer> L = new ArrayList<>(N);
		for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		}
		in.close();
		Collections.sort(L);
		long sum = 0;
		for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		}
		if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = Integer.parseInt(in.nextLine());
		String[] tokens = in.nextLine().split(" ");
		List<Integer> L = new ArrayList<>(N);
		for (int i = 0; i < N; ++i) {
			L.add(Integer.parseInt(tokens[i]));
		}
		in.close();
		Collections.sort(L);
		long sum = 0;
		for (int i = 0; i < N - 1; ++i) {
			sum += L.get(i);
		}
		if (sum > L.get(L.size() - 1)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}

}