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