mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline N, M, K = map(int, input().split()) A = list(range(1, N+1)) A[-1] += M - sum(A) ans = [0] * N j = 0 flg = 0 for i, a in enumerate(A): if flg == 0: if K >= N - i - 1: K -= N - i - 1 ans[-i-1] = a else: flg = 1 ans[K] = a K = 0 else: if ans[j] != 0: j += 1 ans[j] = a j += 1 print(*ans, sep="\n") assert len(set(ans)) == N assert 0 not in A if __name__ == '__main__': main()