fun main(args: Array<String>) {
    val inStr = readLine()
    val dataSets = inStr?.split(' ')?.map { s -> s.toInt() } ?: return
    val a = dataSets[0]
    val b = dataSets[1]
    val c = dataSets[2]

    val numOfDivisors = (a..b).filter { i -> (c % i) == 0 }.count()
    println(numOfDivisors)
}

