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

print(min(C, B//A)) 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 print(min(C, B//A)) print min(C, B//A) min C B//A B A 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
A, B, C = list(map(int, input().split()))

print(min(C, B//A))