import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        int hen[] = new int[n]; 
        int big;
		for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        }
        Arrays.sort(hen);
        big = hen[n - 1];
        for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        }
        if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        int hen[] = new int[n]; 
        int big;
		for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        }
        Arrays.sort(hen);
        big = hen[n - 1];
        for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        }
        if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        int hen[] = new int[n]; 
        int big;
		for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        }
        Arrays.sort(hen);
        big = hen[n - 1];
        for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        }
        if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        int hen[] = new int[n]; 
        int big;
		for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        }
        Arrays.sort(hen);
        big = hen[n - 1];
        for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        }
        if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int hen[] = new int[n]; hen new int[n] n int big; big for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
          hen[i] = sc.nextInt();
        } {
          hen[i] = sc.nextInt();
        } hen[i] = sc.nextInt() hen[i] hen i sc.nextInt() sc.nextInt sc Arrays.sort(hen) Arrays.sort Arrays hen big = hen[n - 1] big hen[n - 1] hen n - 1 n 1 for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
          big -= hen[i];
        } {
          big -= hen[i];
        } big -= hen[i] big hen[i] hen i if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        } big < 0 big 0 {
        	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);
		// 整数の入力
		int n = sc.nextInt();
        int hen[] = new int[n]; 
        int big;
		for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        }
        Arrays.sort(hen);
        big = hen[n - 1];
        for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        }
        if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        int hen[] = new int[n]; 
        int big;
		for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        }
        Arrays.sort(hen);
        big = hen[n - 1];
        for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        }
        if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
        int hen[] = new int[n]; 
        int big;
		for(int i = 0;i < n; i++){
          hen[i] = sc.nextInt();
        }
        Arrays.sort(hen);
        big = hen[n - 1];
        for(int i = 0;i < n - 1; i++){
          big -= hen[i];
        }
        if(big < 0){
        	System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}