A sequence of length $n$ is called a permutation if and only if it's composed of the first $n$ positive integers and each number appears exactly once.
Here we define the "difference sequence" of a permutation $p_1, p_2, \ldots, p_n$ as $p_2 - p_1, p_3 - p_2, \ldots, p_n - p_{n-1}$. In other words, the length of the difference sequence is $n-1$ and the $i$-th term is $p_{i+1}-p_i$
Now, you are given two integers $N, K$. Please find the permutation with length $N$ such that the difference sequence of which is the $K$-th lexicographically smallest among all difference sequences of all permutations of length $N$.