print all permutations