fun main(args: Array) { p783() } fun p783() { val s = readLine()!! val answer = s.map { if (it in '1'..'9') it.toString().toInt() else 0 }.sum() println(answer) }