A,B,C=map(int,raw_input().split())
if B/A>C:
    print C
else:
    print B/A 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 if B/A>C:
    print C
else:
    print B/A B/A>C B/A B A C print print B/A B A B,C=map(int,raw_input().split()) map(int,raw_input().split()) B C=map(int,raw_input().split()) map(int,raw_input().split()) C A,B,C=map(int,raw_input().split()) map(int,raw_input().split()) A
A,B,C=map(int,raw_input().split())
if B/A>C:
    print C
else:
    print B/A