import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val a: Int = sc.nextInt()
  val b: Int = sc.nextInt()
  val c: Int = sc.nextInt()

  val diff = b - a * c

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