let () =
    Scanf.scanf "%d %d %d %d\n" (fun a b c d ->
        if abs (a - c) <= d then Printf.printf "Yes"
        else if abs (a - b) <=d && abs (b - c) <= d then Printf.printf "Yes"
        else Printf.printf "No"
    )
