def resolve():
  a, b, c = map(int, input().split())
  print(min(b//a, c))
  return

if __name__ == "__main__":
  resolve() def resolve():
  a, b, c = map(int, input().split())
  print(min(b//a, c))
  return resolve a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c print(min(b//a, c)) print min(b//a, c) min b//a b a c return if __name__ == "__main__":
  resolve() __name__ == "__main__" __name__ "__main__" resolve() resolve def resolve():
  a, b, c = map(int, input().split())
  print(min(b//a, c))
  return def resolve():
  a, b, c = map(int, input().split())
  print(min(b//a, c))
  return resolve
def resolve():
  a, b, c = map(int, input().split())
  print(min(b//a, c))
  return

if __name__ == "__main__":
  resolve()
