N, M, K = [int(x) for x in input().split()] P = [i for i in range(1, N)] rest = M-N*(N-1)//2 P.append(rest) k = N-1 ans = [] while K: if K > k: K -= k ans.append(P[k]) else: break k -= 1 for i in range(N-len(ans)): ans.append(P[i]) k = min(k, K) for i in range(N-1, N-1-k, -1): ans[i-1], ans[i] = ans[i], ans[i-1] for a in ans: print(a)