import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] ary = new int[N];
        for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        }
        Arrays.sort(ary);
        int sum = 0;
        for(int num : ary){
            sum += num;
        }
        sum -= ary[N-1];
        System.out.println(ary[N-1] < sum ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] ary = new int[N];
        for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        }
        Arrays.sort(ary);
        int sum = 0;
        for(int num : ary){
            sum += num;
        }
        sum -= ary[N-1];
        System.out.println(ary[N-1] < sum ? "Yes" : "No");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] ary = new int[N];
        for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        }
        Arrays.sort(ary);
        int sum = 0;
        for(int num : ary){
            sum += num;
        }
        sum -= ary[N-1];
        System.out.println(ary[N-1] < sum ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] ary = new int[N];
        for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        }
        Arrays.sort(ary);
        int sum = 0;
        for(int num : ary){
            sum += num;
        }
        sum -= ary[N-1];
        System.out.println(ary[N-1] < sum ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] ary = new int[N]; ary new int[N] N for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            ary[i] = sc.nextInt();
        } {
            ary[i] = sc.nextInt();
        } ary[i] = sc.nextInt() ary[i] ary i sc.nextInt() sc.nextInt sc Arrays.sort(ary) Arrays.sort Arrays ary int sum = 0; sum 0 for(int num : ary){
            sum += num;
        } int num ary {
            sum += num;
        } {
            sum += num;
        } sum += num sum num sum -= ary[N-1] sum ary[N-1] ary N-1 N 1 System.out.println(ary[N-1] < sum ? "Yes" : "No") System.out.println System.out System System.out ary[N-1] < sum ? "Yes" : "No" ary[N-1] < sum ary[N-1] ary N-1 N 1 sum "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] ary = new int[N];
        for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        }
        Arrays.sort(ary);
        int sum = 0;
        for(int num : ary){
            sum += num;
        }
        sum -= ary[N-1];
        System.out.println(ary[N-1] < sum ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] ary = new int[N];
        for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        }
        Arrays.sort(ary);
        int sum = 0;
        for(int num : ary){
            sum += num;
        }
        sum -= ary[N-1];
        System.out.println(ary[N-1] < sum ? "Yes" : "No");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] ary = new int[N];
        for(int i = 0; i < N; i++){
            ary[i] = sc.nextInt();
        }
        Arrays.sort(ary);
        int sum = 0;
        for(int num : ary){
            sum += num;
        }
        sum -= ary[N-1];
        System.out.println(ary[N-1] < sum ? "Yes" : "No");
    }
}
