package main import . "fmt" func main() { var s string Scan(&s) x:=0 for _,c:=range s { if '0'<=c&&c<='9' { x+=int(c-'0') } } Println(x) }