import java.util.Scanner;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> l = new ArrayList<>();
        int max = 0;
        for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        }

        int sum = 0;
        for (int x : l) {
            sum += x;
        }
        sum -= max;
        if (max < sum) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
} import java.util.Scanner; Scanner java.util import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> l = new ArrayList<>();
        int max = 0;
        for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        }

        int sum = 0;
        for (int x : l) {
            sum += x;
        }
        sum -= max;
        if (max < sum) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> l = new ArrayList<>();
        int max = 0;
        for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        }

        int sum = 0;
        for (int x : l) {
            sum += x;
        }
        sum -= max;
        if (max < sum) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> l = new ArrayList<>();
        int max = 0;
        for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        }

        int sum = 0;
        for (int x : l) {
            sum += x;
        }
        sum -= max;
        if (max < sum) {
            System.out.println("Yes");
            return;
        }
        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 List<Integer> l = new ArrayList<>(); l new ArrayList<>() int max = 0; max 0 for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        } {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        } int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc max = Math.max(max, num) max Math.max(max, num) Math.max Math max num l.add(num) l.add l num int sum = 0; sum 0 for (int x : l) {
            sum += x;
        } int x l {
            sum += x;
        } {
            sum += x;
        } sum += x sum x sum -= max sum max if (max < sum) {
            System.out.println("Yes");
            return;
        } max < sum max sum {
            System.out.println("Yes");
            return;
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" return; 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();
        List<Integer> l = new ArrayList<>();
        int max = 0;
        for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        }

        int sum = 0;
        for (int x : l) {
            sum += x;
        }
        sum -= max;
        if (max < sum) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> l = new ArrayList<>();
        int max = 0;
        for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        }

        int sum = 0;
        for (int x : l) {
            sum += x;
        }
        sum -= max;
        if (max < sum) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
} Main
import java.util.Scanner;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> l = new ArrayList<>();
        int max = 0;
        for (int i = 0; i < n; i++) {
            int num = sc.nextInt();
            max = Math.max(max, num);
            l.add(num);
        }

        int sum = 0;
        for (int x : l) {
            sum += x;
        }
        sum -= max;
        if (max < sum) {
            System.out.println("Yes");
            return;
        }
        System.out.println("No");
    }
}
