a,b,c=gets.split(/:/).map{|s|s.to_i} a.times{puts b b+=b*c/100}