import std.algorithm, std.conv, std.range, std.stdio, std.string; void main() { auto rd = readln.split.to!(int[]), n = rd[0], d = rd[1], k = rd[2]; auto comSum(int i, int j) { return i > j ? 0 : (j * (j + 1) - (i - 1) * i) / 2; } auto calc(int a, int b) { return comSum(1, a) + comSum(b, n); } auto a = k, b = n + 1, c = -1; if (calc(a, b) > d) { writeln(-1); } else { while (calc(a, b) < d) { if (calc(a - 1, b - 1) < d) { --a; --b; } else { c = a + d - calc(a, b); --a; break; } } auto r = iota(1, a+1).array ~ c ~ iota(b, n+1).array; writeln(r.to!(string[]).join(" ")); } }