import java.util.*;
public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int []A = new int[N];
	for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	}
	for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	}
    int max = A[0];
    int sum =0;
    for(int i=1;i<N;i++) {
    	sum+=A[i];
    }
    if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    }
    
}
	} 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 []A = new int[N];
	for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	}
	for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	}
    int max = A[0];
    int sum =0;
    for(int i=1;i<N;i++) {
    	sum+=A[i];
    }
    if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    }
    
}
	} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int []A = new int[N];
	for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	}
	for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	}
    int max = A[0];
    int sum =0;
    for(int i=1;i<N;i++) {
    	sum+=A[i];
    }
    if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    }
    
} main {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int []A = new int[N];
	for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	}
	for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	}
    int max = A[0];
    int sum =0;
    for(int i=1;i<N;i++) {
    	sum+=A[i];
    }
    if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    }
    
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int []A = new int[N]; A new int[N] N for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
		A[i] = sc.nextInt();
	} {
		A[i] = sc.nextInt();
	} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	} int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	} {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	} for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	} int j=0; int j=0; j 0 j<N-1-i j N-1-i N-1-i N 1 i j++ j++ j {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	} {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	} if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		} A[j]<A[j+1] A[j] A j A[j+1] A j+1 j 1 {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		} int temp= A[j]; temp A[j] A j A[j]=A[j+1] A[j] A j A[j+1] A j+1 j 1 A[j+1]=temp A[j+1] A j+1 j 1 temp int max = A[0]; max A[0] A 0 int sum =0; sum 0 for(int i=1;i<N;i++) {
    	sum+=A[i];
    } int i=1; int i=1; i 1 i<N i N i++ i++ i {
    	sum+=A[i];
    } {
    	sum+=A[i];
    } sum+=A[i] sum A[i] A i if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    } max>=sum max sum {
    	System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" if(max<sum){
    	System.out.println("Yes");
    } max<sum max sum {
    	System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int []A = new int[N];
	for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	}
	for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	}
    int max = A[0];
    int sum =0;
    for(int i=1;i<N;i++) {
    	sum+=A[i];
    }
    if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    }
    
}
	} public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int []A = new int[N];
	for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	}
	for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	}
    int max = A[0];
    int sum =0;
    for(int i=1;i<N;i++) {
    	sum+=A[i];
    }
    if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    }
    
}
	} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int []A = new int[N];
	for(int i=0;i<N;i++){
		A[i] = sc.nextInt();
	}
	for(int i=0;i<N-1;i++) {
		for(int j=0;j<N-1-i;j++) {
			if(A[j]<A[j+1]) {
			int temp= A[j];
			A[j]=A[j+1];
			A[j+1]=temp;	
		}
	}
	}
    int max = A[0];
    int sum =0;
    for(int i=1;i<N;i++) {
    	sum+=A[i];
    }
    if(max>=sum){
    	System.out.println("No");
    }
    else if(max<sum){
    	System.out.println("Yes");
    }
    
}
	}
