n, m, k = map(int, input().split()) v = [i for i in range(n)] sv = sum(v) assert(sv <= m) v[n-1] += m - sv a = [-1 for i in range(n)] for i in range(n): r = n - 1 - i if k <= r: p = (n-1) - k a[p] = v[r] break a[i] = v[r] cur = 0 for i in range(n): if a[i] != -1: continue a[i] = v[cur] cur += 1 print(*a, sep='\n')