a,r,c=STDIN.gets.split /:/;a.to_i.times{|i|r=(r*(1+c.to_f/100)).to_i;puts r}