import itertools
import fractions
def main():
  a,b,c = map(int,input().split())
  print(c if a*c <= b else b//a)
if __name__ == '__main__':
  main() import itertools itertools import fractions fractions def main():
  a,b,c = map(int,input().split())
  print(c if a*c <= b else b//a) main a,b,c = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c print(c if a*c <= b else b//a) print c if a*c <= b else b//a a*c <= b a*c a c b c b//a b a if __name__ == '__main__':
  main() __name__ == '__main__' __name__ '__main__' main() main def main():
  a,b,c = map(int,input().split())
  print(c if a*c <= b else b//a) def main():
  a,b,c = map(int,input().split())
  print(c if a*c <= b else b//a) main
import itertools
import fractions
def main():
  a,b,c = map(int,input().split())
  print(c if a*c <= b else b//a)
if __name__ == '__main__':
  main()