import math

A, B, C = list(map(int, input().split()))

price = A
possession = B
maximum = C

number_of_purchases = min(math.floor(B / A), maximum)

print(number_of_purchases) import math math A, B, C = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split B C price = A price A possession = B possession B maximum = C maximum C number_of_purchases = min(math.floor(B / A), maximum) number_of_purchases min(math.floor(B / A), maximum) min math.floor(B / A) math.floor math floor B / A B A maximum print(number_of_purchases) print number_of_purchases maximum = C C maximum price = A A price possession = B B possession C = list(map(int, input().split())) list(map(int, input().split())) C A, B, C = list(map(int, input().split())) list(map(int, input().split())) A B, C = list(map(int, input().split())) list(map(int, input().split())) B number_of_purchases = min(math.floor(B / A), maximum) min(math.floor(B / A), maximum) number_of_purchases
import math

A, B, C = list(map(int, input().split()))

price = A
possession = B
maximum = C

number_of_purchases = min(math.floor(B / A), maximum)

print(number_of_purchases)
