import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        }
    }
} Main public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        }
    } try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        } {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int[] L = new int[N]; L new int[N] N for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                L[i] = in.nextInt();
            } {
                L[i] = in.nextInt();
            } L[i] = in.nextInt() L[i] L i in.nextInt() in.nextInt in int sum = 0; sum 0 int max = 0; max 0 for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                sum += L[i];
                max = Math.max(max, L[i]);
            } {
                sum += L[i];
                max = Math.max(max, L[i]);
            } sum += L[i] sum L[i] L i max = Math.max(max, L[i]) max Math.max(max, L[i]) Math.max Math max L[i] L i sum -= max sum max System.out.println(sum > max ? "Yes" : "No") System.out.println System.out System System.out sum > max ? "Yes" : "No" sum > max sum max "Yes" "No" String args[] args public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        }
    }
} public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

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

public class Main {
    public static void main(String args[]) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] L = new int[N];
            for (int i = 0; i < N; i++) {
                L[i] = in.nextInt();
            }

            int sum = 0;
            int max = 0;
            for (int i = 0; i < N; i++) {
                sum += L[i];
                max = Math.max(max, L[i]);
            }
            sum -= max;

            System.out.println(sum > max ? "Yes" : "No");
        }
    }
}
