import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        String[] line = scanner.nextLine().split(" ", n);
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(line[i]);
        }
        Arrays.sort(arr);

        int sum = 0;
        for (int i = 0; i < n - 1; i++) {
            sum += arr[i];
        }
        if (arr[n-1] < sum) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        String[] line = scanner.nextLine().split(" ", n);
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(line[i]);
        }
        Arrays.sort(arr);

        int sum = 0;
        for (int i = 0; i < n - 1; i++) {
            sum += arr[i];
        }
        if (arr[n-1] < sum) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        String[] line = scanner.nextLine().split(" ", n);
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(line[i]);
        }
        Arrays.sort(arr);

        int sum = 0;
        for (int i = 0; i < n - 1; i++) {
            sum += arr[i];
        }
        if (arr[n-1] < sum) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        String[] line = scanner.nextLine().split(" ", n);
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(line[i]);
        }
        Arrays.sort(arr);

        int sum = 0;
        for (int i = 0; i < n - 1; i++) {
            sum += arr[i];
        }
        if (arr[n-1] < sum) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner String[] line = scanner.nextLine().split(" ", n); line scanner.nextLine().split(" ", n) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " n int[] arr = new int[n]; arr new int[n] n for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(line[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            arr[i] = Integer.parseInt(line[i]);
        } {
            arr[i] = Integer.parseInt(line[i]);
        } arr[i] = Integer.parseInt(line[i]) arr[i] arr i Integer.parseInt(line[i]) Integer.parseInt Integer line[i] line i Arrays.sort(arr) Arrays.sort Arrays arr int sum = 0; sum 0 for (int i = 0; i < n - 1; i++) {
            sum += arr[i];
        } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
            sum += arr[i];
        } {
            sum += arr[i];
        } sum += arr[i] sum arr[i] arr i if (arr[n-1] < sum) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } arr[n-1] < sum arr[n-1] arr n-1 n 1 sum {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
            System.out.println("No");
        } System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.nextLine());

        String[] line = scanner.nextLine().split(" ", n);
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = Integer.parseInt(line[i]);
        }
        Arrays.sort(arr);

        int sum = 0;
        for (int i = 0; i < n - 1; i++) {
            sum += arr[i];
        }
        if (arr[n-1] < sum) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
