object Main {
  def main(args:Array[String]) = {
    val input=io.StdIn.readLine()
    println(solve(input).toString.trim())
   // print(input)
  }
 
 def solve(input:String): Int= {
  val arr = input.split(" ")map(_ .toInt)
  val ans1= arr(1)/arr(0)
   val ans =if (ans1 <= arr(2)){
   ans1
   }else{
   arr(2)
   }
   ans
  }
}