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

c = 0

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

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

print(c)

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

print((r//d - l//d + (l%d==0)))

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

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

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