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)) + d[:k] + [i] + d[k:] break d.reverse() for i in range(n): d[i] += 1 s = sum(d) m -= s d[d.index(n)] += m print(*d, sep='\n')