import sys input = lambda : sys.stdin.readline().rstrip() sys.setrecursionlimit(2*10**5+10) write = lambda x: sys.stdout.write(x+"\n") debug = lambda x: sys.stderr.write(x+"\n") writef = lambda x: print("{:.12f}".format(x)) n,m,k = list(map(int, input().split())) l = list(range(1, n+1)) l[-1] = m - (n-1)*n//2 ans = [-1]*n done = [0]*n for v in range(n, 0, -1): i = n - v if k>v: k -= v ans[v-1] = l[i] done[i] = 1 else: ans[k] = l[i] done[i] = 1 break j = 0 for i in range(n): while j=0: j += 1 if not done[i]: ans[j] = l[i] write("\n".join(map(str, ans)))