object Main extends App {
    val abc = scala.io.StdIn.readLine()

    abc.split(" ")
    abc.split(" ")(0)

    val a = abc.split(" ")(0).toInt
    val b = abc.split(" ")(1).toInt
    val c = abc.split(" ")(2).toInt

    println(List(b/a, c).min)
}