A, B, C = map(int, input().split())
cnt = B//A
print(min(cnt, C)) A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C cnt = B//A cnt B//A B A print(min(cnt, C)) print min(cnt, C) min cnt C cnt = B//A B//A cnt A, B, C = map(int, input().split()) map(int, input().split()) A B, C = map(int, input().split()) map(int, input().split()) B C = map(int, input().split()) map(int, input().split()) C
A, B, C = map(int, input().split())
cnt = B//A
print(min(cnt, C))