Given a positive integer , print all permutations of the integers from to in lexicographical order.
One positive integer where 1 \le n \le 8 is given.
Print all permutations of the integers from to in lexicographical order. Print each permutation on a separate line.
Example 1