$/=map {get.words},^($!=get);$_=grep {?.[0].map({m/nyanpass|\-/}).all},list ([Z] $/) Z ^$!;say $_==1??.[0][1]+1!!-1