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



result = 0

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

    if i % d == 0:

        result += 1

print(result)

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



print((R // d - (L - 1) // d))

L, R, d = list(map(int, input().split()))
result = 0
for i in range(L, R + 1):
    if i % d == 0:
        result += 1
print(result)

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

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