import math



# inputList=[]

# for i in range(6):

#     inputNum = input()

#     inputList.append(inputNum)

inputa = input().split()

# inputb = input().split()



a = int(inputa[0])

b = int(inputa[1])

c = int(inputa[2])



# x = int(inputb[0])

# y = int(inputb[1])



ans = int(math.floor(float(b)/float(a)))



if ans > c:

    ans = c



print(ans)
import sys

import re

import math



# import bisect



# import copy

# import heapq

# from collections import deque

# import decimal



# sys.setrecursionlimit(100001)

INF = sys.maxsize

# MOD = 10 ** 9 + 7



ni = lambda: int(sys.stdin.readline())

ns = lambda: list(map(int, sys.stdin.readline().split()))

na = lambda: list(map(int, sys.stdin.readline().split()))





# ===CODE===





def main():

    a,b,c=ns()

    print((min(c, b//a)))





if __name__ == '__main__':

    main()

import math

# inputList=[]
# for i in range(6):
#     inputNum = input()
#     inputList.append(inputNum)
inputa = input().split()
# inputb = input().split()
a = int(inputa[0])
b = int(inputa[1])
c = int(inputa[2])
# x = int(inputb[0])
# y = int(inputb[1])
ans = int(math.floor(float(b) / float(a)))
if ans > c:
    ans = c
print(ans)

import sys
import re
import math

# import bisect
# import copy
# import heapq
# from collections import deque
# import decimal
# sys.setrecursionlimit(100001)
INF = sys.maxsize
# MOD = 10 ** 9 + 7
ni = lambda: int(sys.stdin.readline())
ns = lambda: list(map(int, sys.stdin.readline().split()))
na = lambda: list(map(int, sys.stdin.readline().split()))
# ===CODE===
def main():
    a, b, c = ns()
    print((min(c, b // a)))


if __name__ == "__main__":
    main()

+import sys +import re -# inputList=[] -# for i in range(6): -#     inputNum = input() -#     inputList.append(inputNum) -inputa = input().split() -# inputb = input().split() -a = int(inputa[0]) -b = int(inputa[1]) -c = int(inputa[2]) -# x = int(inputb[0]) -# y = int(inputb[1]) -ans = int(math.floor(float(b) / float(a))) -if ans > c: -    ans = c -print(ans) +# import bisect +# import copy +# import heapq +# from collections import deque +# import decimal +# sys.setrecursionlimit(100001) +INF = sys.maxsize +# MOD = 10 ** 9 + 7 +ni = lambda: int(sys.stdin.readline()) +ns = lambda: list(map(int, sys.stdin.readline().split())) +na = lambda: list(map(int, sys.stdin.readline().split())) +# ===CODE=== +def main(): +    a, b, c = ns() +    print((min(c, b // a))) + + +if __name__ == "__main__": +    main()