// No.279 木の数え上げ package main import ( "fmt" "strings" ) func main() { var s string fmt.Scan(&s) t, r, e := strings.Count(s, "t"), strings.Count(s, "r"), (strings.Count(s, "e") / 2) fmt.Println(min(t, r, e)) }