output_description: For each dataset, output in a line the possible maximum total after-tax price
  when the VAT rate is changed to _y_ %.
input_description: The input consists of multiple datasets. Each dataset is in one line, which
  consists of three integers _x_ , _y_ , and _s_ separated by a space. _x_ is
  the VAT rate in percent _before_ the VAT-rate change, _y_ is the VAT rate in
  percent _after_ the VAT-rate change, and _s_ is the sum of after-tax prices of
  two items _before_ the VAT-rate change. For these integers, 0 < _x_ < 100, 0 <
  _y_ < 100, 10 < _s_ < 1000, and _x_ ≠ _y_ hold. For before-tax prices of
  items, all possibilities of 1 yen through _s_ -1 yen should be considered.
  
  The end of the input is specified by three zeros separated by a space.
attempt: # 税抜価格から税込価格を計算する関数
  #
  #  [引数]
  #   zeinuki  : 税抜価格(整数)
  #   zeiritsu : 税率(パーセント, 整数)
  #  [返り値]
  #   税込価格(整数)
  def calcZeikomi(zeinuki, zeiritsu):
      return zeinuki + zeinuki * zeiritsu // 100
  
  
  # 税込価格から税抜価格の最小値を探索する関数
  #
  # [考え方]
  #  税抜価格の最小値は1から税込価格の間にあり、1から探索すれば最小値が求まる
  # [引数]
  #  zeikomi  : 税込価格(整数)
  #  zeiritsu : 税率(パーセント, 整数)
  # [返り値]
  #  税抜価格の最小値(整数)。存在しない場合はNone。
  def calcZeinukiMinimum(zeikomi, zeiritsu):
      for i in range(1, zeikomi + 1):
          if calcZeikomi(i, zeiritsu) == zeikomi:
              return i
      return None
  
  
  # 税込価格から税抜価格の最大値を探索する関数
  #
  # [考え方]
  #  税抜価格の最大値は1から税込価格の間にあり、税込価格から探索すれば最大値が
  #  求まる
  # [引数]
  #  zeikomi  : 税込価格(整数)
  #  zeiritsu : 税率(パーセント, 整数)
  # [返り値]
  #  税抜価格の最大値(整数)。存在しない場合はNone。
  def calcZeinukiMaximum(zeikomi, zeiritsu):
      for i in range(zeikomi, 0, -1):
          if calcZeikomi(i, zeiritsu) == zeikomi:
              return i
      return None
  
  
  # 改定価格の最大値を計算する関数
  #
  # [引数]
  #  rate0  : 変更前の消費税率(整数)
  #  rate1  : 変更後の消費税率(整数)
  #  price0 : 消費税率変更前の価格(整数)
  # [返り値]
  #  消費税率変更後の価格(整数)。存在しなければNone。
  def calcKaiteiMaximum(rate0, rate1, price0):
      zeinuki = calcZeinukiMaximum(price0, rate0)
      if zeinuki == None:
          return None
      return calcZeikomi(zeinuki, rate1)
  
  
  # 問題を解く関数
  #
  # [考え方]
  #  2商品の合計価格が与えられるので、総当たり法を実施
  # [引数]
  #  x : 変更前の消費税率(パーセント, 整数)
  #  y : 変更後の消費税率(パーセント, 整数)
  #  s : 消費税率変更前の２商品の税込合計価格
  def solve(x, y, s):
      res = 0
      for i in range(1, s):
          price1 = calcKaiteiMaximum(x, y, i)
          price2 = calcKaiteiMaximum(x, y, s - i)
          if price1 == None or price2 == None:
              continue
          res = max(res, price1 + price2)
      return res
  
  
  # メインルーチン
  while True:
      ary = input().split()
      x = int(ary[0])
      y = int(ary[1])
      s = int(ary[2])
      if x == 0 and y == 0 and s == 0:
          break
      print(solve(x, y, s))
  
problem_description: Tax Rate Changed
  
  VAT (value-added tax) is a tax imposed at a certain rate proportional to the
  sale price.
  
  Our store uses the following rules to calculate the after-tax prices.
  
    * When the VAT rate is _x_ %, for an item with the before-tax price of _p_ yen, its after-tax price of the item is _p_  (100+_x_) / 100 yen, fractions rounded off. 
    * The total after-tax price of multiple items paid at once is the sum of after-tax prices of the items. 
  
  The VAT rate is changed quite often. Our accountant has become aware that
  "different pairs of items that had the same total after-tax price may have
  different total after-tax prices after VAT rate changes." For example, when
  the VAT rate rises from 5% to 8%, a pair of items that had the total after-tax
  prices of 105 yen before can now have after-tax prices either of 107, 108, or
  109 yen, as shown in the table below.
  
  Before-tax prices of two items| After-tax price with 5% VAT| After-tax price
  with 8% VAT  
  ---|---|---  
  20, 80| 21 + 84 = 105| 21 + 86 = 107  
  2, 99| 2 + 103 = 105| 2 + 106 = 108  
  13, 88| 13 + 92 = 105| 14 + 95 = 109  
    
  
  Our accountant is examining effects of VAT-rate changes on after-tax prices.
  You are asked to write a program that calculates the possible maximum total
  after-tax price of two items with the new VAT rate, knowing their total after-
  tax price before the VAT rate change.
samples: [{"input": "8 105\n    8 5 105\n    1 2 24\n    99 98 24\n    12 13 26\n    1 22 23\n    1 13 201\n    13 16 112\n    2 24 50\n    1 82 61\n    1 84 125\n    1 99 999\n    99 1 999\n    98 99 999\n    1 99 11\n    99 1 12\n    0 0 0", "output": "103\n    24\n    24\n    26\n    27\n    225\n    116\n    62\n    111\n    230\n    1972\n    508\n    1004\n    20\n    7"}]