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

let _ = main ()
