import java.util.*;
import static java.lang.Math.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a[] = new int[n];
        int max = 0;
        for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        }
        int sum = 0;
        boolean flag = true;
        for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        }
        System.out.println(sum > max ? "Yes" : "No" );
    }
} import java.util.*; util.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a[] = new int[n];
        int max = 0;
        for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        }
        int sum = 0;
        boolean flag = true;
        for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        }
        System.out.println(sum > max ? "Yes" : "No" );
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a[] = new int[n];
        int max = 0;
        for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        }
        int sum = 0;
        boolean flag = true;
        for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        }
        System.out.println(sum > max ? "Yes" : "No" );
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a[] = new int[n];
        int max = 0;
        for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        }
        int sum = 0;
        boolean flag = true;
        for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        }
        System.out.println(sum > max ? "Yes" : "No" );
    } 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 int max = 0; max 0 for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        } {
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc max = max(max, a[i]) max max(max, a[i]) max max a[i] a i int sum = 0; sum 0 boolean flag = true; flag true for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        } {
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        } if(a[i] == max && flag){
                flag = false;
                continue;
            } a[i] == max && flag a[i] == max a[i] a i max flag {
                flag = false;
                continue;
            } flag = false flag false continue; sum += a[i] sum a[i] a i System.out.println(sum > max ? "Yes" : "No" ) System.out.println System.out System System.out sum > max ? "Yes" : "No" sum > max sum max "Yes" "No" 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];
        int max = 0;
        for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        }
        int sum = 0;
        boolean flag = true;
        for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        }
        System.out.println(sum > max ? "Yes" : "No" );
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a[] = new int[n];
        int max = 0;
        for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        }
        int sum = 0;
        boolean flag = true;
        for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        }
        System.out.println(sum > max ? "Yes" : "No" );
    }
} Main
import java.util.*;
import static java.lang.Math.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a[] = new int[n];
        int max = 0;
        for(int i=0; i<n; i++){
            a[i] = sc.nextInt();
            max = max(max, a[i]);
        }
        int sum = 0;
        boolean flag = true;
        for(int i=0; i<n; i++){
            if(a[i] == max && flag){
                flag = false;
                continue;
            }
            sum += a[i];
        }
        System.out.println(sum > max ? "Yes" : "No" );
    }
}
