output_description: Print the number of times Takahashi will hear his favorite sound.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  """
  Created on 2019/3/3
  Solved on 2019/3/3
  @author: shinjisu
  """
  
  
  # ABC 120
  # import math
  
  
  def getInt():
      return int(input())
  
  
  def getIntList():
      return [int(x) for x in input().split()]
  
  
  def zeros(n):
      return [0] * n
  
  
  def getIntLines(n):
      return [int(input()) for i in range(n)]
  
  
  def getIntMat(n):
      mat = []
      for i in range(n):
          mat.append(getIntList())
      return mat
  
  
  def zeros2(n, m):
      return [zeros(m)] * n
  
  
  ALPHABET = [chr(i + ord("a")) for i in range(26)]
  DIGIT = [chr(i + ord("0")) for i in range(10)]
  N1097 = 10**9 + 7
  INF = 10**12
  
  
  def dmp(x, cmt=""):
      global debug
      if debug:
          if cmt != "":
              print(cmt, ":  ", end="")
          print(x)
      return x
  
  
  def prob_A():
      A, B, C = getIntList()
      dmp((A, B, C))
      count = min(B // A, C)
      return count
  
  
  debug = False  # True False
  ans = prob_A()
  print(ans)
  # for row in ans:
  #    print(row)
  
  
  def prob_B():
      N = getInt()
      A = getIntList()
      dmp((N, A))
      return 123
  
  
  def prob_C():
      N = getInt()
      A = getIntList()
      dmp((N, A))
      return 123
  
  
  def prob_D():
      N = getInt()
      A = getIntList()
      dmp((N, A))
      return 123
  
problem_description: Statement
  
  Takahashi likes the sound when he buys a drink from a vending machine.
  
  That sound can be heard by spending A yen (the currency of Japan) each time.
  
  Takahashi has B yen. He will hear the sound as many times as he can with that
  money, but at most C times, as he would be satisfied at that time.
  
  How many times will he hear the sound?
samples: [{"input": "2 11 4", "output": "4\n    \n\nSince he has not less than 8 yen, he will hear the sound four times and be\nsatisfied.\n\n* * *"}, {"input": "3 9 5", "output": "3\n    \n\nHe may not be able to be satisfied.\n\n* * *"}, {"input": "100 1 10", "output": "0"}]