#include using namespace std; bool check(int x, int y, int d, int k) { if(y - x + 1 < k) { return false; } int low = 0, high = 0; for(int i = 0; i < k; i++) { low += x + i; high += y - i; } return low <= d && high >= d; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, d, k; cin >> n >> d >> k; if(check(1, n, d, k)) { for(int i = 1; i <= n; i++) { if(check(i + 1, n, d - i, k - 1)) { if(k == 1) { cout << i << endl; return 0; } else { cout << i << " "; } d -= i; k--; } } } cout << -1 << endl; return 0; }