#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; //define #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl; #define dump(x) cerr << #x << " = " << (x) << endl; #define INF (INT_MAX/2) #define PI (2*acos(0.0)) #define EPS (1e-8) #define REP(i,a,b) for(int i=(a); i<(b);++i) #define rep(i,n) REP(i,0,n) typedef long long ll; typedef unsigned long long ull; typedef pair pii; typedef pair pll; typedef vector vint; typedef vector > vvint; typedef vector vll; typedef vector > vvll; int dx[8] = {0, 1, 0, -1, 1, -1, 1, -1}; int dy[8] = {1, 0, -1, 0, 1, -1, -1, 1}; int N, D, K; bool solved = false; int dp[101][1001][10]; vector okashi; void printokashi(){ for(int i = 1; i < okashi.size(); i++){ if(i - 1) cout << " "; cout << okashi[i]; } cout << endl; } void solve(int n, int k, int d){ if(solved || k > K || d > D) return; if(k == K && d == D) { printokashi(); solved = true; return; } if(n > N) return; if(dp[n][k][d] != -1) return; dp[n][k][d] = 1; okashi.push_back(n); solve(n + 1, k + 1, d + n); okashi.pop_back(); solve(n + 1, k, d); } int main(void){ ios_base::sync_with_stdio(0); cin >> N >> D >> K; for(int i = 0; i <= N; i++) for(int j = 0; j <= D; j++){ for(int k = 0; k <= K; k++) dp[i][j][k] = -1; } solve(0, -1, 0); if(!solved) cout << -1 << endl; return 0; }