"use strict";
function Main(input) {
    let lines = input.split("\n");
    let N = lines.shift() - 0;
    let Ln = lines[0].split(" ").map((v) => v - 0);
    Ln.sort(function(a,b) { return b - a; });
    let max = Ln.shift();
    let sum = 0;
    Ln.forEach(function(value, index, array) { sum += value; });

    console.log(max < sum ? "YES" : "NO");
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
