n, m, k = map(int, input().split()) numlist = [i for i in range(n)] listsum = sum(numlist) numlist[-1] += m - listsum ans = [-1 for i in range(n+1)] lastind = n for i in range(n): maxadd = n - i - 1 if maxadd >= k: ans[k] = numlist[i] lastind = i + 1 break else: ans[maxadd] = numlist[i] k -= maxadd last = 0 for i in range(lastind,n): while ans[last] != -1: last += 1 ans[last] = numlist[i] last += 1 for i in range(n): print("{}".format(ans[i]))