import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] sideArrayTmp = br.readLine().split(" ");
        int[] sideArray = new int[n];
        for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        }
        Arrays.sort(sideArray);
        int sum = 0;
        for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        }
        if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] sideArrayTmp = br.readLine().split(" ");
        int[] sideArray = new int[n];
        for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        }
        Arrays.sort(sideArray);
        int sum = 0;
        for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        }
        if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] sideArrayTmp = br.readLine().split(" ");
        int[] sideArray = new int[n];
        for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        }
        Arrays.sort(sideArray);
        int sum = 0;
        for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        }
        if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] sideArrayTmp = br.readLine().split(" ");
        int[] sideArray = new int[n];
        for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        }
        Arrays.sort(sideArray);
        int sum = 0;
        for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        }
        if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] sideArrayTmp = br.readLine().split(" "); sideArrayTmp br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] sideArray = new int[n]; sideArray new int[n] n for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        } {
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        } sideArray[i] = Integer.parseInt(sideArrayTmp[i]) sideArray[i] sideArray i Integer.parseInt(sideArrayTmp[i]) Integer.parseInt Integer sideArrayTmp[i] sideArrayTmp i Arrays.sort(sideArray) Arrays.sort Arrays sideArray int sum = 0; sum 0 for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        } int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
            sum += sideArray[i];
        } {
            sum += sideArray[i];
        } sum += sideArray[i] sum sideArray[i] sideArray i if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        } sum > sideArray[n-1] sum sideArray[n-1] sideArray n-1 n 1 {
            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 public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] sideArrayTmp = br.readLine().split(" ");
        int[] sideArray = new int[n];
        for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        }
        Arrays.sort(sideArray);
        int sum = 0;
        for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        }
        if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] sideArrayTmp = br.readLine().split(" ");
        int[] sideArray = new int[n];
        for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        }
        Arrays.sort(sideArray);
        int sum = 0;
        for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        }
        if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        String[] sideArrayTmp = br.readLine().split(" ");
        int[] sideArray = new int[n];
        for(int i = 0; i < n; i++){
            sideArray[i] = Integer.parseInt(sideArrayTmp[i]);
        }
        Arrays.sort(sideArray);
        int sum = 0;
        for(int i = 0; i < n-1; i++){
            sum += sideArray[i];
        }
        if(sum > sideArray[n-1]){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
