import sys

def solve():
    input = sys.stdin.readline
    A, B, C = map(int, input().split())
    print(min(C, B//A))

    return 0

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

    return 0 solve input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline A, B, C = map(int, input().split()) A 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 return 0 0 if __name__ == "__main__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():
    input = sys.stdin.readline
    A, B, C = map(int, input().split())
    print(min(C, B//A))

    return 0 def solve():
    input = sys.stdin.readline
    A, B, C = map(int, input().split())
    print(min(C, B//A))

    return 0 solve
import sys

def solve():
    input = sys.stdin.readline
    A, B, C = map(int, input().split())
    print(min(C, B//A))

    return 0

if __name__ == "__main__":
    solve()