import java.util.Scanner

object Main {
  val sc = new Scanner(System.in)
  def main(args: Array[String]): Unit = {
    val a = sc.nextInt
    val b = sc.nextInt
    val c = sc.nextInt

    println( if(a * c <= b) c else b /a )
  }
}