import sys
input = sys.stdin.readline

def main():
  A,B,C = [int(i) for i in input().strip().split()]
  return min(B//A,C)
  
if __name__ == "__main__":
  print(main())
   import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def main():
  A,B,C = [int(i) for i in input().strip().split()]
  return min(B//A,C)
   main int(i) for i in input().strip().split() for i in input().strip().split() i input().strip().split() ().strip().split ().strip() ().strip () input strip split for i in input().strip().split() int(i) int i A,B,C = [int(i) for i in input().strip().split()] A [int(i) for i in input().strip().split()] B C return min(B//A,C) min(B//A,C) min B//A B A C if __name__ == "__main__":
  print(main())
   __name__ == "__main__" __name__ "__main__" print(main()) print main() main input = sys.stdin.readline sys.stdin.readline input def main():
  A,B,C = [int(i) for i in input().strip().split()]
  return min(B//A,C)
   def main():
  A,B,C = [int(i) for i in input().strip().split()]
  return min(B//A,C)
   main
import sys
input = sys.stdin.readline

def main():
  A,B,C = [int(i) for i in input().strip().split()]
  return min(B//A,C)
  
if __name__ == "__main__":
  print(main())
  
