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

public class Main {

	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		int N = Integer.parseInt(s);

		s = sc.nextLine();
		String[] ns = s.split(" ");

		int n[] = new int[ns.length];
		for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		}

		Arrays.sort(n);

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

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

	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		int N = Integer.parseInt(s);

		s = sc.nextLine();
		String[] ns = s.split(" ");

		int n[] = new int[ns.length];
		for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		}

		Arrays.sort(n);

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

		if(sum > n[n.length - 1]) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} Main public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		int N = Integer.parseInt(s);

		s = sc.nextLine();
		String[] ns = s.split(" ");

		int n[] = new int[ns.length];
		for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		}

		Arrays.sort(n);

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

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

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		int N = Integer.parseInt(s);

		s = sc.nextLine();
		String[] ns = s.split(" ");

		int n[] = new int[ns.length];
		for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		}

		Arrays.sort(n);

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

		if(sum > n[n.length - 1]) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int N = Integer.parseInt(s); N Integer.parseInt(s) Integer.parseInt Integer s s = sc.nextLine() s sc.nextLine() sc.nextLine sc String[] ns = s.split(" "); ns s.split(" ") s.split s " " int n[] = new int[ns.length]; n new int[ns.length] ns.length ns ns.length for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		} int i=0; int i=0; i 0 i<ns.length i ns.length ns ns.length i++ i++ i {
			n[i] = Integer.parseInt(ns[i]);
		} {
			n[i] = Integer.parseInt(ns[i]);
		} n[i] = Integer.parseInt(ns[i]) n[i] n i Integer.parseInt(ns[i]) Integer.parseInt Integer ns[i] ns i Arrays.sort(n) Arrays.sort Arrays n int sum=0; sum 0 for(int i=0;i<n.length-1;i++) {
			sum += n[i];
		} int i=0; int i=0; i 0 i<n.length-1 i n.length-1 n.length n n.length 1 i++ i++ i {
			sum += n[i];
		} {
			sum += n[i];
		} sum += n[i] sum n[i] n i if(sum > n[n.length - 1]) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} sum > n[n.length - 1] sum n[n.length - 1] n n.length - 1 n.length n n.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" String args[] args public class Main {

	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		int N = Integer.parseInt(s);

		s = sc.nextLine();
		String[] ns = s.split(" ");

		int n[] = new int[ns.length];
		for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		}

		Arrays.sort(n);

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

		if(sum > n[n.length - 1]) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		int N = Integer.parseInt(s);

		s = sc.nextLine();
		String[] ns = s.split(" ");

		int n[] = new int[ns.length];
		for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		}

		Arrays.sort(n);

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

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

public class Main {

	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();

		int N = Integer.parseInt(s);

		s = sc.nextLine();
		String[] ns = s.split(" ");

		int n[] = new int[ns.length];
		for(int i=0;i<ns.length;i++) {
			n[i] = Integer.parseInt(ns[i]);
		}

		Arrays.sort(n);

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

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