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