a=$<.map &:split;p (0..$$).one?{|i|a.one?{|b|b[i]!='nyanpass'}&&X=i}?X+1:-1