fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val input = readLine()!!.split(" ").map { it.toInt() }
    val inputSorted = input.sortedDescending()

    var restSum = 0
    for (i in 1 until n) {
        restSum += inputSorted[i]
    }

    if (restSum > inputSorted[0]) print("Yes") else print("No")
}
