// No.1070 Missing a space package main import ( "fmt" "strings" ) func main() { var c string fmt.Scan(&c) fmt.Println(len(strings.ReplaceAll(c, "0", "")) - 1) }