
def solve():

    A, B, C = map(int, input().split())

    canListen = B//A

    print(min(canListen, C))


if __name__ == "__main__":
    solve() def solve():

    A, B, C = map(int, input().split())

    canListen = B//A

    print(min(canListen, C)) solve A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C canListen = B//A canListen B//A B A print(min(canListen, C)) print min(canListen, C) min canListen C if __name__ == "__main__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():

    A, B, C = map(int, input().split())

    canListen = B//A

    print(min(canListen, C)) def solve():

    A, B, C = map(int, input().split())

    canListen = B//A

    print(min(canListen, C)) solve

def solve():

    A, B, C = map(int, input().split())

    canListen = B//A

    print(min(canListen, C))


if __name__ == "__main__":
    solve()
