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