gets l=[*$<].map(&:split).transpose a=l.select{|s| s.count('nyanpass')>s.size-2 } p a[1]?-1:l.index(a[0])+1