fun main(){println(readLine()!!.replace(Regex("[^0-9]"),"").toCharArray().map{it.toInt()-48}.sum())}