#include using namespace std; #define rep(i,n) for(int i=0;i<(n);++i) #define loop for(;;) #define trace(var) cerr<<">>> "<<#var<<" = "< inline ostream& operator<<(ostream&os, pair p) { return os << '(' << p.first << ", " << p.second << ')'; } template inline ostream& operator<<(ostream&os, tuple t) { return os << '(' << get<0>(t) << ", " << get<1>(t) << ", " << get<2>(t) << ')'; } template inline ostream& operator<<(ostream&os, set v) { os << "(set"; for (T item: v) os << ' ' << item; os << ")"; return os; } template inline ostream& operator<<(ostream&os, vector v) { if (v.size() == 0) { return os << "(empty)"; } os << v[0]; for (int i=1, len=v.size(); i inline istream& operator>>(istream&is, vector&v) { rep (i, v.size()) is >> v[i]; return is; } // ^ > v < int dx[] = { -1, 0, 1, 0 }; int dy[] = { 0, 1, 0, -1 }; using vi = vector; using vvi = vector; using vd = vector; using vvd = vector; using vb = vector; int sum(set&xs) { int r = 0; for (int x: xs) r += x; return r; } int main() { cin.tie(0); ios::sync_with_stdio(0); cout.setf(ios::fixed); cout.precision(10); random_device dev; mt19937 rand(dev()); int n, d, k; cin >> n >> d >> k; vector> ok(k+1, vector (d+1, false)); ok[0][0] = true; vector>> table(k+1, vector> (d+1)); // table[i][j] = i個買ってj円であるようなセット // ok[i][j] = が存在している for (int i = 1; i <= k; ++i) { for (int j = 1; j <= d; ++j) { for (int j2 = max(0, j-n); j2 < j; ++j2) { int a = j-j2; if (not ok[i-1][j2]) continue; if (table[i-1][j2].count(a) == 0) { table[i][j] = table[i-1][j2]; table[i][j].insert(a); ok[i][j] = true; break; } } } } rep (i, k+1) { rep (j, d+1) { if (not ok[i][j]) continue; if (sum(table[i][j]) != j) { trace(make_pair(i,j)); trace(table[i][j]); return 1; } } } if (table[k][d].size() == k) { vi ans; for (int x: table[k][d]) ans.push_back(x); cout << ans << endl; } else { cout << -1 << endl; } return 0; }