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