open Scanf
open Printf

let transceiver a b c d =
  if abs (c - a) <= d then "Yes"
  else if abs (b - a) <= d && abs (c - b) <= d then "Yes"
  else "No"

let () = scanf "%d %d %d %d" transceiver |> printf "%s\n"