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: # -*- coding: utf-8 -*-
  
  # 入力された文字列
  string = input()
  
  # 最大処理数。100000以下なら文字列長。
  max = min(len(string), 100000)
  
  # 削除した文字数
  del_count = 0
  
  # 削除があった場合True
  del_flg = True
  
  # 削除文字がなくなるまでループする
  while del_flg:
      del_flg = False
  
      #
      for idx in range(max):
          if idx == max or idx > max:
              break
  
          # 照合対象の文字を切り出す
          target = string[idx : idx + 2]
  
          if target == "01" or target == "10":
              # 削除文字に一致した場合、元の文字列からそれを削除しカウントを進め、
              # 削除フラグを立てる
              string = string[:idx] + string[idx + 2 :]
              del_count += 2
              max -= 2
              del_flg = True
  
  print(del_count)
  
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"}]