class Solution:
    def solve(self, A: int, B: int, C: int) -> str:

        return min(B // A, C)


if __name__ == '__main__':

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

    # solve
    solution = Solution()
    print(solution.solve(A, B, C)) class Solution:
    def solve(self, A: int, B: int, C: int) -> str:

        return min(B // A, C) Solution def solve(self, A: int, B: int, C: int) -> str:

        return min(B // A, C) solve return min(B // A, C) min(B // A, C) min B // A B A C self self A: int A B: int B C: int C if __name__ == '__main__':

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

    # solve
    solution = Solution()
    print(solution.solve(A, B, C)) __name__ == '__main__' __name__ '__main__' A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C solution = Solution() solution Solution() Solution print(solution.solve(A, B, C)) print solution.solve(A, B, C) solution.solve solution solve A B C C = map(int, input().split()) map(int, input().split()) C class Solution:
    def solve(self, A: int, B: int, C: int) -> str:

        return min(B // A, C) class Solution:
    def solve(self, A: int, B: int, C: int) -> str:

        return min(B // A, C) Solution solution = Solution() Solution() solution B, C = map(int, input().split()) map(int, input().split()) B A, B, C = map(int, input().split()) map(int, input().split()) A
class Solution:
    def solve(self, A: int, B: int, C: int) -> str:

        return min(B // A, C)


if __name__ == '__main__':

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

    # solve
    solution = Solution()
    print(solution.solve(A, B, C))
