import java.util.ArrayList;
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 = Integer.parseInt(sc.next());
        Integer[] l = new Integer[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(l);
        int sum = 0;
        for (int length : l) {
            sum += length;
        }

        boolean result = sum - l[n - 1] > l[n - 1];

        System.out.println(result ? "Yes" : "No");
    }
} import java.util.ArrayList; ArrayList java.util 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 = Integer.parseInt(sc.next());
        Integer[] l = new Integer[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(l);
        int sum = 0;
        for (int length : l) {
            sum += length;
        }

        boolean result = sum - l[n - 1] > l[n - 1];

        System.out.println(result ? "Yes" : "No");
    }
} Main public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        Integer[] l = new Integer[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(l);
        int sum = 0;
        for (int length : l) {
            sum += length;
        }

        boolean result = sum - l[n - 1] > l[n - 1];

        System.out.println(result ? "Yes" : "No");
    } main {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        Integer[] l = new Integer[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(l);
        int sum = 0;
        for (int length : l) {
            sum += length;
        }

        boolean result = sum - l[n - 1] > l[n - 1];

        System.out.println(result ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Integer[] l = new Integer[n]; l new Integer[n] n for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            l[i] = Integer.parseInt(sc.next());
        } {
            l[i] = Integer.parseInt(sc.next());
        } l[i] = Integer.parseInt(sc.next()) l[i] l i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(l) Arrays.sort Arrays l int sum = 0; sum 0 for (int length : l) {
            sum += length;
        } int length l {
            sum += length;
        } {
            sum += length;
        } sum += length sum length boolean result = sum - l[n - 1] > l[n - 1]; result sum - l[n - 1] > l[n - 1] sum - l[n - 1] sum l[n - 1] l n - 1 n 1 l[n - 1] l n - 1 n 1 System.out.println(result ? "Yes" : "No") System.out.println System.out System System.out result ? "Yes" : "No" result "Yes" "No" String args[] args public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        Integer[] l = new Integer[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(l);
        int sum = 0;
        for (int length : l) {
            sum += length;
        }

        boolean result = sum - l[n - 1] > l[n - 1];

        System.out.println(result ? "Yes" : "No");
    }
} public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        Integer[] l = new Integer[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(l);
        int sum = 0;
        for (int length : l) {
            sum += length;
        }

        boolean result = sum - l[n - 1] > l[n - 1];

        System.out.println(result ? "Yes" : "No");
    }
} Main
import java.util.ArrayList;
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 = Integer.parseInt(sc.next());
        Integer[] l = new Integer[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(l);
        int sum = 0;
        for (int length : l) {
            sum += length;
        }

        boolean result = sum - l[n - 1] > l[n - 1];

        System.out.println(result ? "Yes" : "No");
    }
}