import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        Arrays.sort(l);
        int max = Arrays.stream(l).max().getAsInt();
        int other = Arrays.stream(l).sum() - max;
        String result = max < other ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} import java.util.*; util.* java public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        Arrays.sort(l);
        int max = Arrays.stream(l).max().getAsInt();
        int other = Arrays.stream(l).sum() - max;
        String result = max < other ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        Arrays.sort(l);
        int max = Arrays.stream(l).max().getAsInt();
        int other = Arrays.stream(l).sum() - max;
        String result = max < other ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    } main {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        Arrays.sort(l);
        int max = Arrays.stream(l).max().getAsInt();
        int other = Arrays.stream(l).sum() - max;
        String result = max < other ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] l = new int[n]; l new int[n] n for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            l[i] = Integer.parseInt(sc.next());
        } {
            l[i] = Integer.parseInt(sc.next());
        } l[i] = Integer.parseInt(sc.next()) l[i] l i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(l) Arrays.sort Arrays l int max = Arrays.stream(l).max().getAsInt(); max Arrays.stream(l).max().getAsInt() Arrays.stream(l).max().getAsInt Arrays.stream(l).max() Arrays.stream(l).max Arrays.stream(l) Arrays.stream Arrays l int other = Arrays.stream(l).sum() - max; other Arrays.stream(l).sum() - max Arrays.stream(l).sum() Arrays.stream(l).sum Arrays.stream(l) Arrays.stream Arrays l max String result = max < other ? "Yes" : "No"; result max < other ? "Yes" : "No" max < other max other "Yes" "No" System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String args[] args public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        Arrays.sort(l);
        int max = Arrays.stream(l).max().getAsInt();
        int other = Arrays.stream(l).sum() - max;
        String result = max < other ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        Arrays.sort(l);
        int max = Arrays.stream(l).max().getAsInt();
        int other = Arrays.stream(l).sum() - max;
        String result = max < other ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
} Main
import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] l = new int[n];
        for (int i = 0; i < n; i++) {
            l[i] = Integer.parseInt(sc.next());
        }

        // 主処理
        Arrays.sort(l);
        int max = Arrays.stream(l).max().getAsInt();
        int other = Arrays.stream(l).sum() - max;
        String result = max < other ? "Yes" : "No";

        // 出力
        System.out.println(result);
        sc.close();
    }
}
