N, M, K = map(int, input().split()) num_cand_arr = list(range(0, N)) num_cand_arr[-1] = M - sum(num_cand_arr[:-1]) assert num_cand_arr[-1] >= N - 1 inv = 0 res = [] for i in range(N - 1, -1, -1): if inv + i <= K: inv += i res.append(num_cand_arr.pop()) else: res.append(num_cand_arr.pop(K - inv)) break res.extend(num_cand_arr) print(*res, sep="\n")