a,b,c = list(map(int, input().split()))

t = 0

for n in range(a,b+1):

 if c%n == 0:

 	t += 1

print(t)
a,b,c = list(map(int, input().split()))

t = 0

for n in range(a,b+1):

 if c%n == 0:

 	t += 1

print(str(t))
a, b, c = list(map(int, input().split()))
t = 0
for n in range(a, b + 1):
    if c % n == 0:
        t += 1
print(t)

a, b, c = list(map(int, input().split()))
t = 0
for n in range(a, b + 1):
    if c % n == 0:
        t += 1
print(str(t))

-print(t) +print(str(t))