def resolve():
    A, B, C = list(map(int, input().split()))
    print(min(C, B//A))

if '__main__' == __name__:
    resolve() def resolve():
    A, B, C = list(map(int, input().split()))
    print(min(C, B//A)) resolve 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 print(min(C, B//A)) print min(C, B//A) min C B//A B A if '__main__' == __name__:
    resolve() '__main__' == __name__ '__main__' __name__ resolve() resolve def resolve():
    A, B, C = list(map(int, input().split()))
    print(min(C, B//A)) def resolve():
    A, B, C = list(map(int, input().split()))
    print(min(C, B//A)) resolve
def resolve():
    A, B, C = list(map(int, input().split()))
    print(min(C, B//A))

if '__main__' == __name__:
    resolve()