A,B,C=map(int,input().split())
count=0
while B>0:
   if A>B:
      break
   B=B-A
   count+=1
   if count>=C:
      break
print(count) A,B,C=map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split B C count=0 count 0 while B>0:
   if A>B:
      break
   B=B-A
   count+=1
   if count>=C:
      break B>0 B 0 if A>B:
      break
    A>B A B break B=B-A B B-A B A count+=1 count 1 if count>=C:
      break count>=C count C break print(count) print count B,C=map(int,input().split()) map(int,input().split()) B A,B,C=map(int,input().split()) map(int,input().split()) A count+=1 1 count C=map(int,input().split()) map(int,input().split()) C count=0 0 count B=B-A B-A B
A,B,C=map(int,input().split())
count=0
while B>0:
   if A>B:
      break
   B=B-A
   count+=1
   if count>=C:
      break
print(count)