c,b,p=STDIN.gets.split(':').map{|x|x.to_i};c.times{p b;b+=b*p/100}