import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int max = 0;
		int sum = 0;
		List<Integer> list = new ArrayList<Integer>();
		for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		}
		
		if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int max = 0;
		int sum = 0;
		List<Integer> list = new ArrayList<Integer>();
		for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		}
		
		if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int max = 0;
		int sum = 0;
		List<Integer> list = new ArrayList<Integer>();
		for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		}
		
		if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int max = 0;
		int sum = 0;
		List<Integer> list = new ArrayList<Integer>();
		for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		}
		
		if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int max = 0; max 0 int sum = 0; sum 0 List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		} {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		} int input = scan.nextInt(); input scan.nextInt() scan.nextInt scan list.add(input) list.add list input if (input > max) max = input; input > max input max max = input max input sum += input sum input if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		} max < (sum - max) max (sum - max) sum max {
			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 scan = new Scanner(System.in);
		int n = scan.nextInt();
		int max = 0;
		int sum = 0;
		List<Integer> list = new ArrayList<Integer>();
		for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		}
		
		if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int max = 0;
		int sum = 0;
		List<Integer> list = new ArrayList<Integer>();
		for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		}
		
		if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
} Main
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int max = 0;
		int sum = 0;
		List<Integer> list = new ArrayList<Integer>();
		for (int i=0; i<n; i++) {
			int input = scan.nextInt();
			list.add(input);
			
			if (input > max) max = input;
			sum += input;
		}
		
		if (max < (sum - max)) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}