import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] l = new int[n];
        long sum = 0;
        for (int i=0; i<n; i++) {
            l[i] = in.nextInt();
            sum += l[i];
        }

        Arrays.sort(l);
        int max = l[n-1];

        sum -= max;

        String ans = "No";
        if (max < sum) ans = "Yes";

        System.out.println(ans);

        in.close();
    }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] l = new int[n];
        long sum = 0;
        for (int i=0; i<n; i++) {
            l[i] = in.nextInt();
            sum += l[i];
        }

        Arrays.sort(l);
        int max = l[n-1];

        sum -= max;

        String ans = "No";
        if (max < sum) ans = "Yes";

        System.out.println(ans);

        in.close();
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] l = new int[n];
        long sum = 0;
        for (int i=0; i<n; i++) {
            l[i] = in.nextInt();
            sum += l[i];
        }

        Arrays.sort(l);
        int max = l[n-1];

        sum -= max;

        String ans = "No";
        if (max < sum) ans = "Yes";

        System.out.println(ans);

        in.close();
    } main {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] l = new int[n];
        long sum = 0;
        for (int i=0; i<n; i++) {
            l[i] = in.nextInt();
            sum += l[i];
        }

        Arrays.sort(l);
        int max = l[n-1];

        sum -= max;

        String ans = "No";
        if (max < sum) ans = "Yes";

        System.out.println(ans);

        in.close();
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int[] l = new int[n]; l new int[n] n long sum = 0; sum 0 for (int i=0; i<n; i++) {
            l[i] = in.nextInt();
            sum += l[i];
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            l[i] = in.nextInt();
            sum += l[i];
        } {
            l[i] = in.nextInt();
            sum += l[i];
        } l[i] = in.nextInt() l[i] l i in.nextInt() in.nextInt in sum += l[i] sum l[i] l i Arrays.sort(l) Arrays.sort Arrays l int max = l[n-1]; max l[n-1] l n-1 n 1 sum -= max sum max String ans = "No"; ans "No" if (max < sum) ans = "Yes"; max < sum max sum ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans in.close() in.close in String[] args args
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] l = new int[n];
        long sum = 0;
        for (int i=0; i<n; i++) {
            l[i] = in.nextInt();
            sum += l[i];
        }

        Arrays.sort(l);
        int max = l[n-1];

        sum -= max;

        String ans = "No";
        if (max < sum) ans = "Yes";

        System.out.println(ans);

        in.close();
    }
}