Bytie has m dice. Each die has n faces, and the faces show 1,2,…,n pips respectively.
Bytie only cares about arrangements of the dice in a row where the top faces, read from left to right, form a non-decreasing sequence: every value is at least the value before it.
To compare two such arrangements, look at the leftmost position where they differ; the arrangement with the smaller value there is considered the "worse" one. In other words, the arrangements are ordered lexicographically.
Starting from the worst arrangement, in which every top face shows 1, Bytie lists all such arrangements in this order. Determine the k-th arrangement in the list.
Write a program that
The only line contains three positive integers m, n, and k (1≤m≤20, 4≤n≤50, 1≤k≤1018).
The input is guaranteed to be such that the k-th arrangement exists.
Print the top faces of the m dice in the requested k-th arrangement, as m positive integers separated by single spaces on one line.