line = input()
A, B, C = [int(n) for n in line.split()]
D = int(B/A)
if D >= C:
    print(C)
else:
    print(D) line = input() line input() input int(n) for n in line.split() for n in line.split() n line.split() line.split line split for n in line.split() int(n) int n A, B, C = [int(n) for n in line.split()] A [int(n) for n in line.split()] B C D = int(B/A) D int(B/A) int B/A B A if D >= C:
    print(C)
else:
    print(D) D >= C D C print(C) print C print(D) print D B, C = [int(n) for n in line.split()] [int(n) for n in line.split()] B line = input() input() line D = int(B/A) int(B/A) D C = [int(n) for n in line.split()] [int(n) for n in line.split()] C A, B, C = [int(n) for n in line.split()] [int(n) for n in line.split()] A
line = input()
A, B, C = [int(n) for n in line.split()]
D = int(B/A)
if D >= C:
    print(C)
else:
    print(D)