import java.util.Scanner

object Main {
  def main(args: Array[String]) = {
    val sc = new Scanner(System.in)
    val A,B,C = sc.nextInt()

    val sound = B/A
    if (sound > C) println(C) else println(sound)
  }
}
