import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int N = sc.nextInt();
        int[] n = new int[N];
        int sum = 0;
        for(int i = 0;i < N;i++){
            n[i] = sc.nextInt();
        }
        Arrays.sort(n);
        for(int i = 0;i < N-1;i++){
            sum += n[i];
        }
        System.out.println(n[N-1] < sum ?"Yes":"No");
        }
    } import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int N = sc.nextInt();
        int[] n = new int[N];
        int sum = 0;
        for(int i = 0;i < N;i++){
            n[i] = sc.nextInt();
        }
        Arrays.sort(n);
        for(int i = 0;i < N-1;i++){
            sum += n[i];
        }
        System.out.println(n[N-1] < sum ?"Yes":"No");
        }
    } Main public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int N = sc.nextInt();
        int[] n = new int[N];
        int sum = 0;
        for(int i = 0;i < N;i++){
            n[i] = sc.nextInt();
        }
        Arrays.sort(n);
        for(int i = 0;i < N-1;i++){
            sum += n[i];
        }
        System.out.println(n[N-1] < sum ?"Yes":"No");
        } main {
        Scanner sc = new Scanner (System.in);
        int N = sc.nextInt();
        int[] n = new int[N];
        int sum = 0;
        for(int i = 0;i < N;i++){
            n[i] = sc.nextInt();
        }
        Arrays.sort(n);
        for(int i = 0;i < N-1;i++){
            sum += n[i];
        }
        System.out.println(n[N-1] < sum ?"Yes":"No");
        } Scanner sc = new Scanner (System.in); sc new Scanner (System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] n = new int[N]; n new int[N] N int sum = 0; sum 0 for(int i = 0;i < N;i++){
            n[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            n[i] = sc.nextInt();
        } {
            n[i] = sc.nextInt();
        } n[i] = sc.nextInt() n[i] n i sc.nextInt() sc.nextInt sc Arrays.sort(n) Arrays.sort Arrays n for(int i = 0;i < N-1;i++){
            sum += n[i];
        } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
            sum += n[i];
        } {
            sum += n[i];
        } sum += n[i] sum n[i] n i System.out.println(n[N-1] < sum ?"Yes":"No") System.out.println System.out System System.out n[N-1] < sum ?"Yes":"No" n[N-1] < sum n[N-1] n N-1 N 1 sum "Yes" "No" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int N = sc.nextInt();
        int[] n = new int[N];
        int sum = 0;
        for(int i = 0;i < N;i++){
            n[i] = sc.nextInt();
        }
        Arrays.sort(n);
        for(int i = 0;i < N-1;i++){
            sum += n[i];
        }
        System.out.println(n[N-1] < sum ?"Yes":"No");
        }
    }
