import scala.io.StdIn.readLine import scala.util.chaining._ @main def yuki289(): Unit = readLine .filter(_.isDigit) .map(_.asDigit) .sum .pipe(println)