package main import ( "fmt" "math" ) func min(x, y int) int { return int(math.Min(float64(x), float64(y))) } func main(){ var s string fmt.Scan(&s) var ans int = 1e9 for i := 0; i