#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
const int MX = 300005;
int n,k;
int main(){
	scanf("%d%d", &k, &n);
	if(~k&1) rep(i,n) printf("%d%c", i?k:k/2,i<n-1?' ':'\n');
	else{
		int d[MX] = {}, e = n-1;
		fill(d,d+n,k/2+1);
		rep(i,n/2){
			d[e]--;
			if(!d[e]) e--;
			else if(e < n-1) for(;e < n-1; e++) d[e+1] = k;
		}
		rep(i,e+1) printf("%d%c", d[i],i<e?' ':'\n');
	}
}