def solve():
    a, b, c = map(int, input().split())
    print(min(b//a, c))

if __name__ == '__main__':
    solve() def solve():
    a, b, c = map(int, input().split())
    print(min(b//a, c)) solve a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c print(min(b//a, c)) print min(b//a, c) min b//a b a c if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve def solve():
    a, b, c = map(int, input().split())
    print(min(b//a, c)) def solve():
    a, b, c = map(int, input().split())
    print(min(b//a, c)) solve
def solve():
    a, b, c = map(int, input().split())
    print(min(b//a, c))

if __name__ == '__main__':
    solve()
