import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) sys.setrecursionlimit(10**7) yes = lambda :print("yes");Yes = lambda :print("Yes") no = lambda :print("no");No = lambda :print("No") ####################################################################### n,m,k = na() ans = [] c = 0 now = 0 for i in range(n-1,-1,-1): if c+now<=k: ans.append(i) now+=c c+=1 else: ans.insert(k-now, i) z = i break ans = [i for i in range(z)]+ans d = [i for i in range(n-1)] d = d+[m-sum(d)] for i in range(n): print(d[ans[i]])