private fun countDivisorNum(n: Int, a: Int, b: Int): Int {
    return (a..b).map{ if (n % it == 0) 1 else 0 }.sum()
}

fun main(args : Array<String>) {
    val (a, b, n) = readLine()!!.split(" ").map(String::toInt)
    println("${countDivisorNum(n, a, b)}")
}

