n,m,k = map(int,input().split()) ans = [i for i in range(n-1)] ans.append(m-sum(ans)) now = 0 if k == 0: for i in ans: print(i) exit() while True: if n-1-now < k: 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()