/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_D
  * ?´???°?????°
  * ???????????´??° a???b???c ??????????????????a ?????? b ?????§?????´??°????????????c ????´???°?????????????????????????±???????????????°????????????????????????????????????
  */
object Main {
  def main(args: Array[String]): Unit = {
    val seq = io.StdIn.readLine().split(" +").map(_.toInt)
    val (a, b, c) = seq match { case Array(x, y, z) => (x, y, z) }
    val answer = (a to b).count(c % _ == 0)
    println(answer)
  }
}