import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int maxLength = 0;
        int sum = 0;
        for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        }
        scanner.close();

        boolean valid = maxLength < (sum - maxLength);

        System.out.println(valid ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int maxLength = 0;
        int sum = 0;
        for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        }
        scanner.close();

        boolean valid = maxLength < (sum - maxLength);

        System.out.println(valid ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int maxLength = 0;
        int sum = 0;
        for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        }
        scanner.close();

        boolean valid = maxLength < (sum - maxLength);

        System.out.println(valid ? "Yes" : "No");
    } main {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int maxLength = 0;
        int sum = 0;
        for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        }
        scanner.close();

        boolean valid = maxLength < (sum - maxLength);

        System.out.println(valid ? "Yes" : "No");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = Integer.parseInt(scanner.next()); N Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int maxLength = 0; maxLength 0 int sum = 0; sum 0 for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        } {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        } int l = Integer.parseInt(scanner.next()); l Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner if (maxLength < l) {
                maxLength = l;
            } maxLength < l maxLength l {
                maxLength = l;
            } maxLength = l maxLength l sum += l sum l scanner.close() scanner.close scanner boolean valid = maxLength < (sum - maxLength); valid maxLength < (sum - maxLength) maxLength (sum - maxLength) sum maxLength System.out.println(valid ? "Yes" : "No") System.out.println System.out System System.out valid ? "Yes" : "No" valid "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int maxLength = 0;
        int sum = 0;
        for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        }
        scanner.close();

        boolean valid = maxLength < (sum - maxLength);

        System.out.println(valid ? "Yes" : "No");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int maxLength = 0;
        int sum = 0;
        for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        }
        scanner.close();

        boolean valid = maxLength < (sum - maxLength);

        System.out.println(valid ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = Integer.parseInt(scanner.next());

        int maxLength = 0;
        int sum = 0;
        for (int i = 0; i < N; i++) {
            int l = Integer.parseInt(scanner.next());;
            if (maxLength < l) {
                maxLength = l;
            }
            sum += l;
        }
        scanner.close();

        boolean valid = maxLength < (sum - maxLength);

        System.out.println(valid ? "Yes" : "No");
    }
}
