package main import . "fmt" func main() { var n int Scan(&n) b:=make([]int,n) for _=range b { for i:=range b { var a string Scan(&a) if a=="nyanpass" { b[i]++ } } } for i,v:=range b { if v==n { Println(i+1) return } } Println(-1) }