$_=@(get.comb);get~~m:g/\d+/;.[$0,$1]=.[$1,$0];say |$_