#include<bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(int)n;i++)
#define all(c) (c).begin(),(c).end()
#define mp make_pair
#define pb push_back
#define each(i,c) for(__typeof((c).begin()) i=(c).begin();i!=(c).end();i++)
#define dbg(x) cerr<<__LINE__<<": "<<#x<<" = "<<(x)<<endl

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
const int inf = (int)1e9;
const double INF = 1e12, EPS = 1e-9;

int main(){
	int n, m; cin >> n >> m;
	vi v;
	if(n <= 2 || n % 2){
		rep(i, n / 2 + 1) v.pb(0);
		rep(i, n / 2) v.pb(m);
	}
	else{
		rep(i, n / 2 + 1) v.pb(0);
		rep(i, n / 2 - 1) v.pb(m);
	}
	rep(i, v.size()) cout << v[i] << (i+1 == v.size() ? "\n":" ");
	return 0;
}