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

cnt=0

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

  for j in range(1,101):

    if d*j==i:

      cnt+=1

      break

print(cnt)

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



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



print(ans)

l, r, d = list(map(int, input().split()))
cnt = 0
for i in range(l, r + 1):
    for j in range(1, 101):
        if d * j == i:
            cnt += 1
            break
print(cnt)

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

-cnt = 0 -for i in range(l, r + 1): -    for j in range(1, 101): -        if d * j == i: -            cnt += 1 -            break -print(cnt) +ans = r // d - (l - 1) // d +print(ans)