With VAT rate x%, the after-tax price of a before-tax price p is ⌊p(100+x)/100⌋. Two items once had a combined after-tax total of s yen. After the rate changes to y%, what is the largest combined after-tax total achievable by some pair of before-tax prices that used to total s?
Multiple datasets, one per line: x, y, s. Input ends with 0 0 0. Consider every before-tax price from 1 through s-1 for each item.
For each dataset, print the maximum possible combined after-tax total at rate y%.