object Main extends App {
	override def main(args: Array[String]) = {
		val sc = new java.util.Scanner(System.in)
		
		val a,b,c = sc.nextInt()	

		println(solve(a,b,c))
	}
	
	def solve(a:Int , b:Int, c:Int) : Int = {

		(a to b).count(c%_ == 0)
	}
}