value, money, max_count = map(int, input().split())

ans = min(money // value, max_count)
print(ans) value, money, max_count = map(int, input().split()) value map(int, input().split()) map int input().split() ().split () input split money max_count ans = min(money // value, max_count) ans min(money // value, max_count) min money // value money value max_count print(ans) print ans value, money, max_count = map(int, input().split()) map(int, input().split()) value max_count = map(int, input().split()) map(int, input().split()) max_count ans = min(money // value, max_count) min(money // value, max_count) ans money, max_count = map(int, input().split()) map(int, input().split()) money
value, money, max_count = map(int, input().split())

ans = min(money // value, max_count)
print(ans)