#include using namespace std; typedef long long ll; typedef vector vi; typedef vector vl; typedef pair pii; typedef pair pll; typedef int _loop_int; #define REP(i,n) for(_loop_int i=0;i<(_loop_int)(n);++i) #define FOR(i,a,b) for(_loop_int i=(_loop_int)(a);i<(_loop_int)(b);++i) #define FORR(i,a,b) for(_loop_int i=(_loop_int)(b)-1;i>=(_loop_int)(a);--i) #define DEBUG(x) cout<<#x<<": "< P; int n,m; int ans[1252]; int tmp[1252]; int main(){ cin>>n>>m; REP(i,n)ans[i] = -1; ans[n-1] = m; FORR(i,0,n-1){ int rest = m; priority_queue Q; FOR(j,i+1,n)Q.push(pii(-ans[j], j)); REP(j,n)tmp[j] = -1; int vote = 1; while(Q.size()>0 && rest>0){ pii P = Q.top(); Q.pop(); int id = P.second; if(rest < ans[id]+1)break; tmp[id] = ans[id]+1; rest -= ans[id]+1; vote++; } tmp[i] = rest; FOR(j,i+1,n)CHMAX(tmp[j],0); int peop = n-i; if(vote > peop/2){ // saiyou REP(j,n)ans[j] = tmp[j]; } } REP(i,n)printf("%d%c",ans[i],i==n-1?'\n':' '); return 0; }