import java.util.*;

public class Main {
    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int sum = 0;
        int mx = -1;
        for (int i : arr) {
            sum += i;
            mx = Math.max(mx, i);
        }
        System.out.println((sum - mx > mx) ? "Yes" : "No");
        sc.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int sum = 0;
        int mx = -1;
        for (int i : arr) {
            sum += i;
            mx = Math.max(mx, i);
        }
        System.out.println((sum - mx > mx) ? "Yes" : "No");
        sc.close();
    }
} Main public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int sum = 0;
        int mx = -1;
        for (int i : arr) {
            sum += i;
            mx = Math.max(mx, i);
        }
        System.out.println((sum - mx > mx) ? "Yes" : "No");
        sc.close();
    } main {
        final Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

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

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

        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int sum = 0;
        int mx = -1;
        for (int i : arr) {
            sum += i;
            mx = Math.max(mx, i);
        }
        System.out.println((sum - mx > mx) ? "Yes" : "No");
        sc.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];

        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int sum = 0;
        int mx = -1;
        for (int i : arr) {
            sum += i;
            mx = Math.max(mx, i);
        }
        System.out.println((sum - mx > mx) ? "Yes" : "No");
        sc.close();
    }
}