#include<queue>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<iostream>
using namespace std;
int a[300010];
int main()
{
    int n,k,indx;
    scanf("%d%d",&k,&n);
    indx=n;
    if(k%2==0)
    {
        a[1]=k/2;
        for(int i=2;i<=n;i++)
            a[i]=k;
    }
    else
    {
        int temp=n/2;
        for(int i=1;i<=n;i++)
            a[i]=(k+1)/2;
        while(temp--)
        {
            if(a[indx]==1)
                a[indx--]--;
 
            else
            {
                a[indx]--;
                while(indx<n)
                    a[++indx]=k;
            }
        }
    }
    for(int i=1;i<=indx-1;i++)
       cout<<a[i]<<" ";
    cout<<a[indx]<<endl;
}
