Write a program which reads three integers a, b and c, and prints the number of divisors of c between a and b.
a, b, c = map(int, input().split())
cnt = 0
for i in range(a, b+1):
    if i%c == 0:
        cnt += 1
print(cnt)

a, b, c = map(int, input().split())
cnt = 0
for i in range(a, b+1):
    if c%i == 0:
        cnt += 1
print(cnt)
