n=input().split()
A=int(n[0])
B=int(n[1])
C=int(n[2])

if B>=A*C:
    print(C)
elif B<A*C:
    print(B//A) n=input().split() n input().split() ().split () input split A=int(n[0]) A int(n[0]) int n[0] n 0 B=int(n[1]) B int(n[1]) int n[1] n 1 C=int(n[2]) C int(n[2]) int n[2] n 2 if B>=A*C:
    print(C)
elif B<A*C:
    print(B//A) B>=A*C B A*C A C print(C) print C elif B<A*C:
    print(B//A) B<A*C B A*C A C print(B//A) print B//A B A n=input().split() input().split() n A=int(n[0]) int(n[0]) A C=int(n[2]) int(n[2]) C B=int(n[1]) int(n[1]) B
n=input().split()
A=int(n[0])
B=int(n[1])
C=int(n[2])

if B>=A*C:
    print(C)
elif B<A*C:
    print(B//A)