n, m, k = map(int, input().split()) A = [i for i in range(n)] A[-1] += m-sum(A) ans = [-1]*n j = 0 for i, a in enumerate(A): if k != 0: if k >= n-i-1: ans[-1-i] = a k -= n-i-1 else: ans[k] = a k = 0 else: while ans[j] != -1: j += 1 ans[j] = a j += 1 print(*ans, sep='\n')