import scala.io.StdIn._

object Main extends App {


  val Array(l,r,d) = readLine().split(" ").map(_.toInt)

  def solve() = {
    val cnt = r/d - l/d
    if(l%d ==0) cnt+1 else cnt
  }

  println(solve())

}

