from collections import deque N, M, K = map(int, input().split()) d = deque() for i in range(N): if i=n: v = d.popleft() res[-1-i] = v K -= n else: v = d.pop() res[-1-i] = v if K==0: print(*res, sep='\n') else: print(0)