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

cnt = 0

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

    if i%d==0: cnt += 1

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

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

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

-cnt = 0 -for i in range(l, r + 1): -    if i % d == 0: -        cnt += 1 -print(cnt) +print((r // d - (l - 1) // d))