import java.util.*;

public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        }
        int sum = 0;
        for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        }

        // 出力
        System.out.println(queue.poll() < sum ? "Yes" : "No");
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        }
        int sum = 0;
        for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        }

        // 出力
        System.out.println(queue.poll() < sum ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        }
        int sum = 0;
        for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        }

        // 出力
        System.out.println(queue.poll() < sum ? "Yes" : "No");
    } main {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        }
        int sum = 0;
        for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        }

        // 出力
        System.out.println(queue.poll() < sum ? "Yes" : "No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc PriorityQueue<Integer> queue = new PriorityQueue<>(); queue new PriorityQueue<>() for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            queue.add(sc.nextInt());
        } {
            queue.add(sc.nextInt());
        } queue.add(sc.nextInt()) queue.add queue sc.nextInt() sc.nextInt sc int sum = 0; sum 0 for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
            sum += queue.poll();
        } {
            sum += queue.poll();
        } sum += queue.poll() sum queue.poll() queue.poll queue System.out.println(queue.poll() < sum ? "Yes" : "No") System.out.println System.out System System.out queue.poll() < sum ? "Yes" : "No" queue.poll() < sum queue.poll() queue.poll queue sum "Yes" "No" String[] args args public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        }
        int sum = 0;
        for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        }

        // 出力
        System.out.println(queue.poll() < sum ? "Yes" : "No");
    }
} public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        }
        int sum = 0;
        for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        }

        // 出力
        System.out.println(queue.poll() < sum ? "Yes" : "No");
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        PriorityQueue<Integer> queue = new PriorityQueue<>();
        for(int i = 0; i < n; i++) {
            queue.add(sc.nextInt());
        }
        int sum = 0;
        for(int i = 0; i < n - 1; i++) {
            sum += queue.poll();
        }

        // 出力
        System.out.println(queue.poll() < sum ? "Yes" : "No");
    }
}
