package main import ( "fmt" "strconv" ) func main() { var score string var tmp int total := 0 fmt.Scan(&score) for i := 0; i < 9; i++ { if score[i:i+1] == "0" { total += 10 } else { tmp, _ = strconv.Atoi(score[i : i+1]) total += tmp } } fmt.Println(total) }