#include <cstdio>

int n,k,a[300005];

int main()
{
    scanf("%d%d",&k,&n);
    if(k&1)
    {
        for(int i=1;i<=n;++i)a[i]=(k+1)>>1;
        int t=n,x=n>>1;
        while(x--)
            if(a[t]==1)a[t--]=k;
            else --a[t],t=n;
        for(int i=1;i<=t;++i)printf("%d%c",a[i],i==t?'\n':' ');
    }
    else for(int i=1;i<=n;++i)printf("%d%c",i==1?k>>1:k,i==n?'\n':' ');
    return 0;
}