n,t,x=gets.split(/:/).map(&:to_i) n.times{p t;t+=(t*x.to_f/100).to_i}