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