package main import . "fmt" import . "strings" func main() { var s string Scan(&s) s=Trim(s,"0") Println(len(s)-1) }