fun main(args: Array<String>){
    val (a, b, c, d) = readLine()!!.split(' ').map { x -> x.toInt() }
    val abc: Array<Int> = arrayOf(a, b, c)

    if (Math.abs(abc[2] - abc[0]) <= d){
        println("Yes")
    }else{
        abc.sort()
        if (abc[2] - abc[1] <= d && abc[1] - abc[0] <= d){
            println("Yes")
        }else{
            println("No")
        }
    }
}
