import sys

input = sys.stdin.readline

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

ans = 0

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

    if i%d==0:

        ans+=1

print(ans)

import sys

input = sys.stdin.readline



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

v1 = l//d

if l%d==0:

    v1-=1

v2 = r//d

print((v2-v1))

import sys

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

import sys

input = sys.stdin.readline
l, r, d = list(map(int, input().split()))
v1 = l // d
if l % d == 0:
    v1 -= 1
v2 = r // d
print((v2 - v1))

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