a=gets.split(":").map{|f| f.to_i} b=a[1] a[0].times{|n| p b b=(b+b*a[2]/100).truncate }