while(1>0)println(readLine split'*'map(_ split'+'map(_.toInt)sum)product)