#include using namespace std; using ll = long long; using P = pair; int main() { cin.tie(0); ios::sync_with_stdio(false); int n, m; cin >> n >> m; vector

v; for (int i = 1; i <= n; i++) { sort(v.begin(), v.end()); int sum = 0; for (int j = 0; j < i / 2; j++) { sum += v[j].first + 1; } if (sum > m) { v.emplace_back(-1, -n + i); } else { for (int j = 0; j < i / 2; j++) { v[j].first++; } for (int j = i / 2; j < i - 1; j++) { v[j].first = 0; } v.emplace_back(m - sum, -n + i); } } vector ans(n); for (P& p : v) ans[-p.second] = p.first; cout << ans[0]; for (int i = 1; i < n; i++) { cout << " " << ans[i]; } cout << endl; return 0; }