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