#include #define For(i, a, b) for(int i = a; i < b; i++) #define rep(i, n) For(i, 0, n) #define rFor(i, a, b) for(int i = a; i >= b; i--) #define ALL(v) (v).begin(), (v).end() #define rALL(v) (v).rbegin(), (v).rend() using namespace std; using lint = long long; using ld = long double; int INF = 2000000000; lint LINF = 1000000000000000000; int main() { int n, d, k; cin >> n >> d >> k; int mn = (1 + k) * k / 2; int mx = (n - k + 1 + n) * k / 2; if (!(mn <= d && d <= mx)) { cout << -1 << endl; return 0; } vector ans; For(i, 1, k + 1) { ans.emplace_back(i); } ans.back() += d - mn; ans.emplace_back(n + 1); rFor(i, k - 1, 0) { if (ans[i] >= ans[i + 1]) { int diff = ans[i] - (ans[i + 1] - 1); ans[i] = ans[i + 1] - 1; if (i > 0) { ans[i - 1] += diff; } } } rep(i, k) { cout << ans[i] << " "; } cout << endl; }