package main import ( "fmt" ) func sum[T int | float64](nums []T) T { var sum T for _, n := range nums { sum += n } return sum } func reverse(s string) string { var r []rune = []rune(s) for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 { r[i], r[j] = r[j], r[i] } return string(r) } func main() { var N int fmt.Scan(&N) var s [4]string var ans int for i := 0; i < N; i++ { for j := 0; j < 4; j++ { var t string fmt.Scan(&t) s[j] = t } m := make(map[string]int) for _, v := range s { m[v]++ } if m["akai"] == 1 && m["marui"] == 1 && m["okii"] == 1 && m["umai"] == 1 { ans++ } } fmt.Println(ans) }