n, m, k = map(int, input().split()) res = [] v = [1] * n for i in range(n - 1, -1, -1): if i <= k: res.append(i) v[i] = 0 k -= i for i in range(n): if v[i]: res.append(i) for i in range(n): if res[i] == n - 1: res[i] = m - (n - 1) * (n - 2) // 2 for x in res: print(x)