x = list(input().split(" "))

c = int(x[2])

divisors = 0

for i in range(int(x[0]), int(x[1])+1):

    if c % i == 0:

        divisors += 1

print(divisors)
x = list(input().split(" "))

a = int(x[0])

b = int(x[1])

c = int(x[2])

divisors = 0

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

    if c % i == 0:

        divisors += 1

print(divisors)
x = list(input().split(" "))
c = int(x[2])
divisors = 0
for i in range(int(x[0]), int(x[1]) + 1):
    if c % i == 0:
        divisors += 1
print(divisors)

x = list(input().split(" "))
a = int(x[0])
b = int(x[1])
c = int(x[2])
divisors = 0
for i in range(a, b + 1):
    if c % i == 0:
        divisors += 1
print(divisors)

+a = int(x[0]) +b = int(x[1]) -for i in range(int(x[0]), int(x[1]) + 1): +for i in range(a, b + 1):