import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String vertex = sc.nextLine();
        Integer N = Integer.parseInt(vertex);
        String lineList = sc.nextLine();
        String lines[] = lineList.split(" ");

        ArrayList<Integer> list = new ArrayList<Integer>();
        for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        }

        Integer[] numbers = list.toArray(new Integer[list.size()]);
        Arrays.sort(numbers, Collections.reverseOrder());

        Integer largestLine = numbers[0];
        int lineSum = 0;
        for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        }
        if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String vertex = sc.nextLine();
        Integer N = Integer.parseInt(vertex);
        String lineList = sc.nextLine();
        String lines[] = lineList.split(" ");

        ArrayList<Integer> list = new ArrayList<Integer>();
        for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        }

        Integer[] numbers = list.toArray(new Integer[list.size()]);
        Arrays.sort(numbers, Collections.reverseOrder());

        Integer largestLine = numbers[0];
        int lineSum = 0;
        for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        }
        if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String vertex = sc.nextLine();
        Integer N = Integer.parseInt(vertex);
        String lineList = sc.nextLine();
        String lines[] = lineList.split(" ");

        ArrayList<Integer> list = new ArrayList<Integer>();
        for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        }

        Integer[] numbers = list.toArray(new Integer[list.size()]);
        Arrays.sort(numbers, Collections.reverseOrder());

        Integer largestLine = numbers[0];
        int lineSum = 0;
        for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        }
        if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String vertex = sc.nextLine();
        Integer N = Integer.parseInt(vertex);
        String lineList = sc.nextLine();
        String lines[] = lineList.split(" ");

        ArrayList<Integer> list = new ArrayList<Integer>();
        for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        }

        Integer[] numbers = list.toArray(new Integer[list.size()]);
        Arrays.sort(numbers, Collections.reverseOrder());

        Integer largestLine = numbers[0];
        int lineSum = 0;
        for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        }
        if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String vertex = sc.nextLine(); vertex sc.nextLine() sc.nextLine sc Integer N = Integer.parseInt(vertex); N Integer.parseInt(vertex) Integer.parseInt Integer vertex String lineList = sc.nextLine(); lineList sc.nextLine() sc.nextLine sc String lines[] = lineList.split(" "); lines lineList.split(" ") lineList.split lineList " " ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        } int index=0; int index=0; index 0 index<lines.length index lines.length lines lines.length index++ index++ index {
            list.add(Integer.parseInt(lines[index]));
        } {
            list.add(Integer.parseInt(lines[index]));
        } list.add(Integer.parseInt(lines[index])) list.add list Integer.parseInt(lines[index]) Integer.parseInt Integer lines[index] lines index Integer[] numbers = list.toArray(new Integer[list.size()]); numbers list.toArray(new Integer[list.size()]) list.toArray list new Integer[list.size()] list.size() list.size list Arrays.sort(numbers, Collections.reverseOrder()) Arrays.sort Arrays numbers Collections.reverseOrder() Collections.reverseOrder Collections Integer largestLine = numbers[0]; largestLine numbers[0] numbers 0 int lineSum = 0; lineSum 0 for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        } int i = 0; int i = 0; i 0 i<numbers.length i numbers.length numbers numbers.length i++ i++ i {
            lineSum += numbers[i];
        } {
            lineSum += numbers[i];
        } lineSum += numbers[i] lineSum numbers[i] numbers i if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        } largestLine < (lineSum - largestLine) largestLine (lineSum - largestLine) lineSum largestLine {
            System.out.print("Yes");
        } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
            System.out.print("No");
        } System.out.print("No") System.out.print System.out System System.out "No" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String vertex = sc.nextLine();
        Integer N = Integer.parseInt(vertex);
        String lineList = sc.nextLine();
        String lines[] = lineList.split(" ");

        ArrayList<Integer> list = new ArrayList<Integer>();
        for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        }

        Integer[] numbers = list.toArray(new Integer[list.size()]);
        Arrays.sort(numbers, Collections.reverseOrder());

        Integer largestLine = numbers[0];
        int lineSum = 0;
        for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        }
        if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String vertex = sc.nextLine();
        Integer N = Integer.parseInt(vertex);
        String lineList = sc.nextLine();
        String lines[] = lineList.split(" ");

        ArrayList<Integer> list = new ArrayList<Integer>();
        for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        }

        Integer[] numbers = list.toArray(new Integer[list.size()]);
        Arrays.sort(numbers, Collections.reverseOrder());

        Integer largestLine = numbers[0];
        int lineSum = 0;
        for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        }
        if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String vertex = sc.nextLine();
        Integer N = Integer.parseInt(vertex);
        String lineList = sc.nextLine();
        String lines[] = lineList.split(" ");

        ArrayList<Integer> list = new ArrayList<Integer>();
        for (int index=0; index<lines.length; index++) {
            list.add(Integer.parseInt(lines[index]));
        }

        Integer[] numbers = list.toArray(new Integer[list.size()]);
        Arrays.sort(numbers, Collections.reverseOrder());

        Integer largestLine = numbers[0];
        int lineSum = 0;
        for(int i = 0; i<numbers.length; i++) {
            lineSum += numbers[i];
        }
        if (largestLine < (lineSum - largestLine)) {
            System.out.print("Yes");
        } else {
            System.out.print("No");
        }
    }
}