#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); //6=4+2 //0 0 0 0 4 0 //0 0 2 0 4 0 ll N, K, M, now=1; cin >> N >> M >> K; vector ans(N+1, -1); for (int i=N-1; i>=1; i--){ if (K >= i){ K -= i; ans[i+1] = now; now++; } } for (int i=1; i<=N; i++){ if (ans[i] == -1){ ans[i] = now; now++; } } M -= N*(N+1)/2; for (int i=1; i<=N; i++) if (ans[i] == N) ans[i] += M; for (int i=1; i<=N; i++) cout << ans[i] << endl; return 0; }