a,b,c=readlines(':').map{|v|v.to_i};a.times{p b;b+=b*c/?d}