object Main extends App {
    val sc = new java.util.Scanner(System.in)
    val a, b, c = sc.nextInt
    val pw = new java.io.PrintWriter(System.out)
    pw.println((a to b).toList.filter(c%_ == 0).size)
    pw.flush()
}
