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

public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.next());
		
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		
		for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		}
		
		int max = arrayList.get(0);
		int index = 0;
		for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		}
		arrayList.remove(index);
		
		int total = 0;
		for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		}
		String ans = "";
		if(max < total)
			ans = "Yes";
		else
			ans = "No";
		
		System.out.println(ans);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.next());
		
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		
		for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		}
		
		int max = arrayList.get(0);
		int index = 0;
		for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		}
		arrayList.remove(index);
		
		int total = 0;
		for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		}
		String ans = "";
		if(max < total)
			ans = "Yes";
		else
			ans = "No";
		
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.next());
		
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		
		for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		}
		
		int max = arrayList.get(0);
		int index = 0;
		for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		}
		arrayList.remove(index);
		
		int total = 0;
		for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		}
		String ans = "";
		if(max < total)
			ans = "Yes";
		else
			ans = "No";
		
		System.out.println(ans);
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.next());
		
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		
		for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		}
		
		int max = arrayList.get(0);
		int index = 0;
		for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		}
		arrayList.remove(index);
		
		int total = 0;
		for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		}
		String ans = "";
		if(max < total)
			ans = "Yes";
		else
			ans = "No";
		
		System.out.println(ans);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner ArrayList<Integer> arrayList = new ArrayList<Integer>(); arrayList new ArrayList<Integer>() for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			arrayList.add(Integer.parseInt(scanner.next()));
		} {
			arrayList.add(Integer.parseInt(scanner.next()));
		} arrayList.add(Integer.parseInt(scanner.next())) arrayList.add arrayList Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int max = arrayList.get(0); max arrayList.get(0) arrayList.get arrayList 0 int index = 0; index 0 for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		} int i=1; int i=1; i 1 i<arrayList.size() i arrayList.size() arrayList.size arrayList i++ i++ i {
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		} {
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		} if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			} max < arrayList.get(i) max arrayList.get(i) arrayList.get arrayList i {
				max = arrayList.get(i);
				index = i;
			} max = arrayList.get(i) max arrayList.get(i) arrayList.get arrayList i index = i index i arrayList.remove(index) arrayList.remove arrayList index int total = 0; total 0 for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		} int i=0; int i=0; i 0 i<arrayList.size() i arrayList.size() arrayList.size arrayList i++ i++ i {
			total = total + arrayList.get(i);
		} {
			total = total + arrayList.get(i);
		} total = total + arrayList.get(i) total total + arrayList.get(i) total arrayList.get(i) arrayList.get arrayList i String ans = ""; ans "" if(max < total)
			ans = "Yes";
		else
			ans = "No"; max < total max total ans = "Yes" ans "Yes" ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.next());
		
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		
		for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		}
		
		int max = arrayList.get(0);
		int index = 0;
		for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		}
		arrayList.remove(index);
		
		int total = 0;
		for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		}
		String ans = "";
		if(max < total)
			ans = "Yes";
		else
			ans = "No";
		
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.next());
		
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		
		for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		}
		
		int max = arrayList.get(0);
		int index = 0;
		for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		}
		arrayList.remove(index);
		
		int total = 0;
		for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		}
		String ans = "";
		if(max < total)
			ans = "Yes";
		else
			ans = "No";
		
		System.out.println(ans);
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.next());
		
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		
		for(int i=0;i<N;i++){
			arrayList.add(Integer.parseInt(scanner.next()));
		}
		
		int max = arrayList.get(0);
		int index = 0;
		for(int i=1;i<arrayList.size();i++){
			if(max < arrayList.get(i)){
				max = arrayList.get(i);
				index = i;
			}
		}
		arrayList.remove(index);
		
		int total = 0;
		for(int i=0;i<arrayList.size();i++){
			total = total + arrayList.get(i);
		}
		String ans = "";
		if(max < total)
			ans = "Yes";
		else
			ans = "No";
		
		System.out.println(ans);
	}
}