import java.util.Scanner import scala.io.StdIn.readLine import scala.util.chaining._ @main def yuki289(): Unit = val s = Scanner(System.in) s.next.filter(_.isDigit).map(_.asDigit).sum.pipe(println)