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