How many multiples of d are there among the integers between L and R (inclusive)?
L, R, D = map(int, input().split())
cnt = 0
for i in range(L, R+1):
    i % D == 0
    cnt += 1
print(cnt)

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