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