import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        }
        Arrays.sort(l);
        int max = l[n - 1];
        int total = 0;
        for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        }
        if(max < total)System.out.println("Yes");
        else System.out.println("No");
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        }
        Arrays.sort(l);
        int max = l[n - 1];
        int total = 0;
        for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        }
        if(max < total)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[] l = new int[n];
        for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        }
        Arrays.sort(l);
        int max = l[n - 1];
        int total = 0;
        for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        }
        if(max < total)System.out.println("Yes");
        else System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        }
        Arrays.sort(l);
        int max = l[n - 1];
        int total = 0;
        for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        }
        if(max < total)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[] l = new int[n]; l new int[n] n for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < l.length i l.length l l.length i++ i++ i {
            l[i] = sc.nextInt();
        } {
            l[i] = sc.nextInt();
        } l[i] = sc.nextInt() l[i] l i sc.nextInt() sc.nextInt sc Arrays.sort(l) Arrays.sort Arrays l int max = l[n - 1]; max l[n - 1] l n - 1 n 1 int total = 0; total 0 for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        } int i = 0; int i = 0; i 0 i < l.length - 1 i l.length - 1 l.length l l.length 1 i++ i++ i {
            total += l[i];
        } {
            total += l[i];
        } total += l[i] total l[i] l i if(max < total)System.out.println("Yes");
        else System.out.println("No"); max < total max total System.out.println("Yes") System.out.println System.out System System.out "Yes" 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[] l = new int[n];
        for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        }
        Arrays.sort(l);
        int max = l[n - 1];
        int total = 0;
        for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        }
        if(max < total)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[] l = new int[n];
        for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        }
        Arrays.sort(l);
        int max = l[n - 1];
        int total = 0;
        for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        }
        if(max < total)System.out.println("Yes");
        else System.out.println("No");
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] l = new int[n];
        for (int i = 0; i < l.length; i++) {
            l[i] = sc.nextInt();
        }
        Arrays.sort(l);
        int max = l[n - 1];
        int total = 0;
        for (int i = 0; i < l.length - 1; i++) {
            total += l[i];
        }
        if(max < total)System.out.println("Yes");
        else System.out.println("No");
    }
}