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

    read*, a,b,x

    if (a <= x .and. x <= a+b) then
        print'(a)', 'YES'
    else
        print'(a)', 'NO'
    end if
end program main