import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		}
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		}
    }
} Main public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		}
    } main {
        try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		}
    } try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		} {
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] lslist = sc.nextLine().split(" "); lslist sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int[] lary = new int[lslist.length]; lary new int[lslist.length] lslist.length lslist lslist.length for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            } int i = 0; int i = 0; i 0 i < lslist.length i lslist.length lslist lslist.length i++ i++ i {
                lary[i] = Integer.parseInt(lslist[i]);
            } {
                lary[i] = Integer.parseInt(lslist[i]);
            } lary[i] = Integer.parseInt(lslist[i]) lary[i] lary i Integer.parseInt(lslist[i]) Integer.parseInt Integer lslist[i] lslist i int max = lary[0]; max lary[0] lary 0 int lsum = lary[0]; lsum lary[0] lary 0 for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            } int i = 1; int i = 1; i 1 i < lary.length i lary.length lary lary.length i++ i++ i {
                max = Math.max(lary[i], max);
                lsum += lary[i];
            } {
                max = Math.max(lary[i], max);
                lsum += lary[i];
            } max = Math.max(lary[i], max) max Math.max(lary[i], max) Math.max Math lary[i] lary i max lsum += lary[i] lsum lary[i] lary i lsum -= max lsum max if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            } lsum > max lsum max {
                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){
        try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		}
    }
} public class Main {
    public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		}
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        try(Scanner sc = new Scanner(System.in)){
            int n = Integer.parseInt(sc.nextLine());
            String[] lslist = sc.nextLine().split(" ");
            int[] lary = new int[lslist.length];
            
            for(int i = 0; i < lslist.length; i++){
                lary[i] = Integer.parseInt(lslist[i]);
            }

            int max = lary[0];
            int lsum = lary[0];
            for(int i = 1; i < lary.length; i++){
                max = Math.max(lary[i], max);
                lsum += lary[i];
            }
            lsum -= max;
            
            if(lsum > max){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }

		}
    }
}