package example

object Main extends App {
  val inputLine = io.StdIn.readLine()
  val arr = inputLine.split(" ")
  val intArr = arr.map(_.toInt)

  def waru(A: Int, B: Int, C: Int): Unit = {
    val Answer = B / A
    if (Answer >= C) {
      println(C)
    } else {
      println(Answer)
    }
  }

  waru(intArr(0), intArr(1), intArr(2))
}