import java.io.PrintWriter

object Main {


  def main(args: Array[String]) {
    val stdin = scala.io.StdIn

    val printWriter = new PrintWriter(System.out)

    val a = stdin.readLong()

    val b = stdin.readLong()

    val c = stdin.readLong()


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

    printWriter.close()
  }
}
