import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val (a, b, c) = (Integer.parseInt(sc.next()), Integer.parseInt(sc.next()), Integer.parseInt(sc.next()))
  println(math.min(b / a, c))
}