#include<iostream>
#include<cstdio>
using namespace std;
int n,k,i,ans[300005],t;
int main(){
	scanf("%d%d",&k,&n);
	if(k%2==0){
		printf("%d ",k/2);
		for(i=2;i<=n;i++) printf("%d ",k);
		return 0;
	}
	t=(n+1)/2;
	for(i=1;i<=n;i++) ans[i]=(k+1)/2;
	while(t--){
		i=n;
		ans[i]--;
		while(ans[i]<0){
			ans[i]=k;
			i--;
			ans[i]--;
		}
	}
	for(i=1;i<=n;i++){
		if(ans[i]==0) break;
		printf("%d ",ans[i]);
	}
	return 0;
}