a,b,c=gets.split(":") p n=b.to_i (a.to_i-1).times{p n+=n*c.to_i/100}