#include using namespace std; int main() { int N, D, K; cin >> N >> D >> K; auto can_buy = [&](int x, int d, int k) { int MIN = 0, MAX = 0; for (int i = 0; i < k; i++) { MIN += x + i; MAX += N - i; } return MIN <= d && MAX >= d; }; if (can_buy(1, D, K)) { for (int i = 1; i <= N; i++) { if (can_buy(i + 1, D - i, K - 1)) { cout << i << " "; D -= i; K--; } } } else cout << -1 << endl; }