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