Find the permutation corresponding to its number in lexicographical order.
The first line contains the integer (1 \leq N \leq 12) — the number of elements in the permutation.
The second line contains the integer (1 \leq K \leq N!) — the number of the permutation.
Print numbers — the required permutation.
Example 1