fun main() { val c = readLine()!!.toCharArray().map { it - '0' } println(c.sum() + c.count { it == 0 } * 10) }