l,r,d=[int(i) for i in input().split()]



count=0

for i in range(l,r+1):

    if i%d==0:

        count+=1



print(count)
l,r,d=list(map(int, input().split()))



ans=r//d-(l-1)//d

print(ans)
l, r, d = [int(i) for i in input().split()]
count = 0
for i in range(l, r + 1):
    if i % d == 0:
        count += 1
print(count)

l, r, d = list(map(int, input().split()))
ans = r // d - (l - 1) // d
print(ans)

-l, r, d = [int(i) for i in input().split()] -count = 0 -for i in range(l, r + 1): -    if i % d == 0: -        count += 1 -print(count) +l, r, d = list(map(int, input().split())) +ans = r // d - (l - 1) // d +print(ans)