M:=(A:=(stdin splitAt:$:)collect:[:x|x asNumber])at:2. 1to:A first do:[:i|M:=M*A last//100+M printNl]