import scala.io.StdIn

object Main{
  def main(args:Array[String]) {
    val inputs = StdIn.readLine().split(" ")
    val a = inputs(0).toInt
    val b = inputs(1).toInt
    val c = inputs(2).toInt
    
    val numList = (a to b).toList
    
    println(numList.count(c % _ == 0))
  }
}