import java.util.*;

public class Main {

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

        int max = 0;
        int maxIndex = 0;
        for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        }

        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        }

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

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

        int max = 0;
        int maxIndex = 0;
        for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        }

        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        }

        System.out.println(sum > max ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] lArr = new int[n];

        int max = 0;
        int maxIndex = 0;
        for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        }

        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        }

        System.out.println(sum > max ? "Yes" : "No");
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] lArr = new int[n];

        int max = 0;
        int maxIndex = 0;
        for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        }

        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        }

        System.out.println(sum > max ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] lArr = new int[n]; lArr new int[n] n int max = 0; max 0 int maxIndex = 0; maxIndex 0 for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        } {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        } lArr[i] = sc.nextInt() lArr[i] lArr i sc.nextInt() sc.nextInt sc if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            } max < lArr[i] max lArr[i] lArr i {
                max = lArr[i];
                maxIndex = i;
            } max = lArr[i] max lArr[i] lArr i maxIndex = i maxIndex i int sum = 0; sum 0 for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (i != maxIndex) sum += lArr[i];
        } {
            if (i != maxIndex) sum += lArr[i];
        } if (i != maxIndex) sum += lArr[i]; i != maxIndex i maxIndex sum += lArr[i] sum lArr[i] lArr i 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) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] lArr = new int[n];

        int max = 0;
        int maxIndex = 0;
        for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        }

        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        }

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

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

        int max = 0;
        int maxIndex = 0;
        for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        }

        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        }

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

public class Main {

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

        int max = 0;
        int maxIndex = 0;
        for (int i = 0; i < n; i++) {
            lArr[i] = sc.nextInt();
            if (max < lArr[i]) {
                max = lArr[i];
                maxIndex = i;
            }
        }

        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (i != maxIndex) sum += lArr[i];
        }

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