function main(input) {
    let allVal = input[1].split(" ")
    let mstVal = Math.max(...allVal)
    let mstPos = allVal.indexOf(mstVal + "")
    allVal.splice(mstPos, 1)
    return allVal.reduce((cur, prev) => cur + +prev, 0) > mstVal ? "Yes" : "No"
}