/*No.1192 Tax Rate Changed*/

#include <stdio.h>

int main(void)
{
  int i=0;
  int X_tax;        /*?¶?????¨???? ?????´???*/
  int Y_tax;        /*?¶?????¨???? ?????´???*/
  int X_price;      /*?????´????¨???????????¨??????????*/
  int Y_price;      /*?????´????¨???????????¨??????????*/
  int price_sum;    /*?¶?????¨?????????´???????????????????¨????????¨???????*/
  int max_price=0;  /*??°?¶?????¨??????§????¨????????¨???????????????§*/
  int price_A;      /*??????????????????????¨??????????????£?*/;
  int price_B ;     /*??????????????????????¨??????????????£?*/;
  int data[18][3]={ {5,8,105}, {8,5,105},{1,2,24},
                   {99,98,24},{12,13,26},{1,22,23},
                   {1,13,201},{13,16,112},{2,24,50},
                   {1,82,61},{1,84,125},{1,99,999},
                   {99,1,999},{98,99,999},{1,99,11},
                   {99,1,12},{0,0,0}};
    while(1){
      X_tax=data[i][0];
      Y_tax=data[i][1];
      price_sum=data[i][2];

      if( X_tax<0 || X_tax>=100 || Y_tax<0 || Y_tax>=100 || price_sum<10 || price_sum>=1000){break;}

      for(price_A=1;price_A<1000;price_A++){ 
          for(price_B=999;price_B>0;price_B--){
	    X_price=(price_A*(100+X_tax)/100)+(price_B*(100+X_tax)/100);

          if(X_price==price_sum){
	    Y_price= (price_A*(100+Y_tax)/100)+(price_B*(100+Y_tax)/100);
	    }
         }
      if(max_price<Y_price){
	  max_price=Y_price;
        }
     } 
      printf("%d\n",max_price);
      max_price=0;
      i++;
   }
  return 0;
}