n, m, k = map(int, input().split()) A = [i + 1 for i in range(n)] sum_ = sum(A) if sum_ < m: A[n - 1] += m - sum_ ANS = [-1 for _ in range(n)] f, l = 0, n - 1 for i in range(n): if k >= n - i - 1: ANS[i] = A[l] l -= 1 k -= n - i - 1 else: ANS[i] = A[f] f += 1 print(*ANS, sep='\n')