A,B,C=map(int,input().split())
if int(B/A)<C:
    print(int(B/A))
else:
    print(C) A,B,C=map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split B C if int(B/A)<C:
    print(int(B/A))
else:
    print(C) int(B/A)<C int(B/A) int B/A B A C print(int(B/A)) print int(B/A) int B/A B A print(C) print C C=map(int,input().split()) map(int,input().split()) C B,C=map(int,input().split()) map(int,input().split()) B A,B,C=map(int,input().split()) map(int,input().split()) A
A,B,C=map(int,input().split())
if int(B/A)<C:
    print(int(B/A))
else:
    print(C)