#include <stdio.h>
#include <cmath>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
typedef long long int ll;
#define BIG_NUM 2000000000
#define MOD 1000000007
using namespace std;

int main(){

	int N,M;

	scanf("%d %d",&N,&M);

	if(N == 1){
		printf("%d\n",M);
		return 0;
	}

	if(N%2 == 0){
		printf("0");
		for(int i = 1; i < N/2+1;i++)printf(" 0");
		for(int i = 1; i < N/2; i++)printf(" %d",M);
		printf("\n");
	}else{
		printf("0");
		for(int i = 1; i < (N+1)/2;i++){
			printf(" 0");
		}
		for(int i = 0; i < N/2; i++)printf(" %d",M);
		printf("\n");
	}

	 return 0;
}