package main import ( "fmt" "math" ) func main() { s, n := "1000000007", "" _, _ = fmt.Scan(&n) fmt.Println(math.Abs(float64(len(s) - len(n)))) }