L,R,d=list(map(int,input().split()))

count=0

for num in range(L,R+1):

    if num%d==0:

        count+=1

print(count)
L,R,d=list(map(int,input().split()))

print((R//d-(L-1)//d))
L, R, d = list(map(int, input().split()))
count = 0
for num in range(L, R + 1):
    if num % d == 0:
        count += 1
print(count)

L, R, d = list(map(int, input().split()))
print((R // d - (L - 1) // d))

-count = 0 -for num in range(L, R + 1): -    if num % d == 0: -        count += 1 -print(count) +print((R // d - (L - 1) // d))