A, B, C = map(int, raw_input().split())

sum = B/A
if sum > C:
    print C
else:
    print sum A, B, C = map(int, raw_input().split()) A map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split B C sum = B/A sum B/A B A if sum > C:
    print C
else:
    print sum sum > C sum C print print C = map(int, raw_input().split()) map(int, raw_input().split()) C sum = B/A B/A sum B, C = map(int, raw_input().split()) map(int, raw_input().split()) B A, B, C = map(int, raw_input().split()) map(int, raw_input().split()) A
A, B, C = map(int, raw_input().split())

sum = B/A
if sum > C:
    print C
else:
    print sum
