from collections import deque n, m, k = map(int, input().split()) A = [i for i in range(n - 1)] A.append(m - sum(A)) lst = [] for i, a in enumerate(A): if k == 0: print(a) elif k > i: k -= i lst.append(a) else: i -= k k = 0 for _ in range(i): print(lst.pop()) print(a) print(*lst[::-1], sep="\n")