def main(A,B,C):
    if (B // A) > C:
        return C
    else:
        return (B // A)
        
A,B,C = map(int,input().split())
print(main(A,B,C)) def main(A,B,C):
    if (B // A) > C:
        return C
    else:
        return (B // A)
         main if (B // A) > C:
        return C
    else:
        return (B // A)
         (B // A) > C B // A B A C return C C return (B // A) B // A B A A A B B C C A,B,C = map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split B C print(main(A,B,C)) print main(A,B,C) main A B C B,C = map(int,input().split()) map(int,input().split()) B def main(A,B,C):
    if (B // A) > C:
        return C
    else:
        return (B // A)
         def main(A,B,C):
    if (B // A) > C:
        return C
    else:
        return (B // A)
         main C = map(int,input().split()) map(int,input().split()) C A,B,C = map(int,input().split()) map(int,input().split()) A
def main(A,B,C):
    if (B // A) > C:
        return C
    else:
        return (B // A)
        
A,B,C = map(int,input().split())
print(main(A,B,C))