from collections import deque n,m,k = map(int,input().split()) ans = [i for i in range(n-1)] ans.append(m-sum(ans)) ans2 = deque(ans) now = 0 while True: if n-1-now < k: ans2.appendleft(ans2.pop()) k -= n-1-now now += 1 else: ans3 = [] for i in range(now): ans3.append(ans[-1-i]) for i in range(now,n): ans3.append(ans[i-now]) ans3.insert(-k,ans3.pop()) for i in ans3: print(i) exit()