import java.util.Scanner object no289{ def main(args:Array[String]):Unit={ val scan = new Scanner(System.in) val str = scan.next var res = 0 for(i <- str){ if(i.isDigit){ res += i-'0' } } println(res) } }