gets l=$<.map(&:split).transpose t=i=0 p l.one?{|s|i+=1;s*''=~/^(nyanpass|-)+$/&&t=i}?t:-1