program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: a,b,c,d

    read*, a,b,c,d

    if (abs(a-c) <= d .or. abs(a-b)+abs(b-c) <= d) then
        print'(a)', 'Yes'
    else
        print'(a)', 'No'
    end if
end program main