#include using namespace std; template bool cmin(T &a, U b) { return a > b && (a = b, true); } template bool cmax(T &a, U b) { return a < b && (a = b, true); } signed main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); int N, D, K; cin >> N >> D >> K; vector ans(K); iota(ans.begin(), ans.end(), 1); if (ans.back() > N) return cout << -1 << "\n", 0; if (accumulate(ans.begin(), ans.end(), 0) > D) return cout << -1 << "\n", 0; int tmp = D - accumulate(ans.begin(), ans.end(), 0); int now = K - 1, mx = N; while (tmp) { if (ans.at(now) == mx) now--, mx--; if (now < 0) return cout << -1 << "\n", 0; ans.at(now)++, tmp--; } if (ans.back() > N) return cout << -1 << "\n", 0; if (accumulate(ans.begin(), ans.end(), 0) > D) return cout << -1 << "\n", 0; for (int i = 0, n = ans.size(); i < n; i++) { cout << ans.at(i) << ((i == n - 1) ? "\n" : " "); } }