$;=':' a,b,c=gets.split.map{|i|i.to_i} a.step(1,-1) { p b b+=b*c/100 }