import re
n = input()
m = re.search('(\d+)\s(\d+)\s(\d+)', n)
a = int(m.group(1))
b = int(m.group(2))
c = int(m.group(3))
i = b // a
if c <= i:
    print(c)
else:
    print(i) import re re n = input() n input() input m = re.search('(\d+)\s(\d+)\s(\d+)', n) m re.search('(\d+)\s(\d+)\s(\d+)', n) re.search re search '(\d+)\s(\d+)\s(\d+)' n a = int(m.group(1)) a int(m.group(1)) int m.group(1) m.group m group 1 b = int(m.group(2)) b int(m.group(2)) int m.group(2) m.group m group 2 c = int(m.group(3)) c int(m.group(3)) int m.group(3) m.group m group 3 i = b // a i b // a b a if c <= i:
    print(c)
else:
    print(i) c <= i c i print(c) print c print(i) print i i = b // a b // a i a = int(m.group(1)) int(m.group(1)) a n = input() input() n m = re.search('(\d+)\s(\d+)\s(\d+)', n) re.search('(\d+)\s(\d+)\s(\d+)', n) m c = int(m.group(3)) int(m.group(3)) c b = int(m.group(2)) int(m.group(2)) b
import re
n = input()
m = re.search('(\d+)\s(\d+)\s(\d+)', n)
a = int(m.group(1))
b = int(m.group(2))
c = int(m.group(3))
i = b // a
if c <= i:
    print(c)
else:
    print(i)
