per_cost, possess, times = map(int, input().split())

ans = min(possess // per_cost, times)
print(ans) per_cost, possess, times = map(int, input().split()) per_cost map(int, input().split()) map int input().split() ().split () input split possess times ans = min(possess // per_cost, times) ans min(possess // per_cost, times) min possess // per_cost possess per_cost times print(ans) print ans per_cost, possess, times = map(int, input().split()) map(int, input().split()) per_cost possess, times = map(int, input().split()) map(int, input().split()) possess ans = min(possess // per_cost, times) min(possess // per_cost, times) ans times = map(int, input().split()) map(int, input().split()) times
per_cost, possess, times = map(int, input().split())

ans = min(possess // per_cost, times)
print(ans)