main = interact $ unlines . map (show . rate_changed . map read . words) . init . lines

rate_changed [x,y,s] = maximum [tax y s1 + tax y s2 | s1<-[1..s'], s2<-[1..s'], tax x s1 + tax x s2 == s]
 where
  s' = tax' x s
  tax r n = floor $ fromIntegral n * (100.0 + fromIntegral r) / 100.0
  tax' r n = floor $ fromIntegral n / (100.0 + fromIntegral r) * 100.0