fun main(){ val s = readLine()!! var sum = 0 for(i in s){ if(49 <= i.toInt() && i.toInt() <= 57) sum += i.toInt() -48 } println(sum) }