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