fun main(args: Array) { val S = readLine()!! var ans = 0 S.forEach { c -> ans += c.toString().toInt() } println(ans) }