object Main {
  def main(args: Array[String]): Unit = {
    val source = readLine.split(" ").toList.map(_.toInt)
//    if ((source(1) / source(0)) < source(2))
    println(source(1) / source(0) match {
      case res if res < source(2) => res
      case _ => source(2)
    })
  }
}