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