package main import "fmt" func main(){ var a string fmt.Scan(&a) ans := 0 for i := 0; i + 1 < len(a); i++ { if a[i + 1] != '0' { ans++ } } fmt.Println(ans) }