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))