program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: i,l,r,d,ans=0

    read*, l,r,d

    do i=l,r
        if (mod(i,d)==0) ans=ans+1
    end do

    print'(i0)', ans
end program main