#include<iostream>
#include<cstdio>
using namespace std;
int n,k,ans[350005],cnt,i,j;
void put(int x){  
    int num=0;char c[15];
    while(x) c[++num]=(x%10)+48,x/=10;
    while(num) putchar(c[num--]);
    putchar(' '); 
}
int read(){
	char c=getchar();
	while(c<'0'||c>'9') c=getchar();
	int x=c-'0';
	c=getchar();
	while(c>='0'&&c<='9'){
		x=(x<<3)+(x<<1)+c-'0';
		c=getchar();
	}
	return x;
}
int main(){
    k=read(),n=read();cnt=n;
    if(k%2){
        for(i=1;i<=n;i++) ans[i]=k/2+1;
        for(i=1;i<=n/2;i++){
            if(ans[cnt]==1){
				cnt--;
				continue;
			}
            ans[cnt]--;
            for(j=cnt+1;j<=n;j++) ans[j]=k;
            cnt=n;
        }
        for(i=1;i<=cnt;i++) printf("%d ",ans[i]);
        return 0;
    }
    printf("%d ",k/2);
    for(i=2;i<=n;i++) printf("%d ",k);
    return 0;
}