n, m, k = map(int, input().split()) now = 0 v = [1] * n a = [-1] * n for i in range(n - 1, -1, -1): if k >= i: a[now] = i now += 1 v[i] = 0 k -= i for i in range(n): if v[i]: a[now] = i now += 1 if a[i] == n - 1: a[i] += m - n * (n - 1) // 2 print(*a)