#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll N, M, K; cin >> N >> M >> K; vector v; for(ll i = N; i--;) { if(K >= i) { v.emplace_back(i + 1); K -= i; } } vector ans(v); ranges::reverse(v); for(ll i = 1; i <= N; i++) { if(!ranges::binary_search(v, i)) { ans.emplace_back(i); } } for(ll i = 0; i < N; i++) { if(ans[i] == N) { ans[i] += M - N * (N + 1) / 2; } } for(auto &i : ans) { cout << i << "\n"; } }