#include #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define RREP(i,n) for(int i = (n) - 1; (i) >= 0; --i) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD 1000007 #define INF 100000000 using namespace std; typedef long long LL; typedef vector VI; typedef pair PI; int main() { int n, d, k; cin >> n >> d >> k; if (d < (k + 1) * k / 2 || d > n * k - k * (k + 1) / 2) { cout << -1 << endl; return 0; } VI a; REP(i, k) a.push_back(i + 1); int i[2] = {}; i[0] = k - 1; i[1] = n; while (1) { int t = 0; for (int e : a) t += e; if (t == d) break; a[i[0]]++; if (a[i[0]] == i[1]) { i[0]--; i[1] = a[i[0]] - 1; } } for (int e : a) cout << e << " "; cout << endl; return 0; }