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