import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        int[] Ls = new int[N];
        for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        }

        Arrays.sort(Ls);

        int sum = 0;
        for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        }

        System.out.println(Ls[N-1] < sum ? "Yes" : "No");
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        int[] Ls = new int[N];
        for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        }

        Arrays.sort(Ls);

        int sum = 0;
        for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        }

        System.out.println(Ls[N-1] < sum ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        int[] Ls = new int[N];
        for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        }

        Arrays.sort(Ls);

        int sum = 0;
        for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        }

        System.out.println(Ls[N-1] < sum ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        int[] Ls = new int[N];
        for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        }

        Arrays.sort(Ls);

        int sum = 0;
        for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        }

        System.out.println(Ls[N-1] < sum ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] Ls = new int[N]; Ls new int[N] N for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            Ls[i] = sc.nextInt();
        } {
            Ls[i] = sc.nextInt();
        } Ls[i] = sc.nextInt() Ls[i] Ls i sc.nextInt() sc.nextInt sc Arrays.sort(Ls) Arrays.sort Arrays Ls int sum = 0; sum 0 for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
            sum += Ls[i];
        } {
            sum += Ls[i];
        } sum += Ls[i] sum Ls[i] Ls i System.out.println(Ls[N-1] < sum ? "Yes" : "No") System.out.println System.out System System.out Ls[N-1] < sum ? "Yes" : "No" Ls[N-1] < sum Ls[N-1] Ls N-1 N 1 sum "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        int[] Ls = new int[N];
        for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        }

        Arrays.sort(Ls);

        int sum = 0;
        for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        }

        System.out.println(Ls[N-1] < sum ? "Yes" : "No");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        int[] Ls = new int[N];
        for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        }

        Arrays.sort(Ls);

        int sum = 0;
        for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        }

        System.out.println(Ls[N-1] < sum ? "Yes" : "No");
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        final int N = sc.nextInt();
        int[] Ls = new int[N];
        for(int i = 0; i < N; i++) {
            Ls[i] = sc.nextInt();
        }

        Arrays.sort(Ls);

        int sum = 0;
        for(int i = 0;i < N - 1; i++) {
            sum += Ls[i];
        }

        System.out.println(Ls[N-1] < sum ? "Yes" : "No");
    }
}
