package main import "fmt" func main() { var c string fmt.Scan(&c) ans := 0 for i, b := range c { if i == 0 { continue } if b == '0' { continue } ans++ } fmt.Println(ans) }