n, m, k = map(int, input().split()) d = [] for i in range(n): if k >= len(d): k -= len(d) d.append(i) else: d = list(range(i + 1, n)[::-1]) + d[:k] + [i] + d[k:] break d.reverse() s = sum(d) m -= s d[d.index(n - 1)] += m print(*d, sep='\n')