package main import ( "fmt" "strings" ) func main() { var s string fmt.Scan(&s) fmt.Println(strings.Count(strings.Replace(s, "-", "", -1), "min")) }