$!=get;say +grep *.join%%$!,permutations 1..8