#include <bits/stdc++.h>
#define il inline
#define RG register
#define ll long long

using namespace std;

int a[300005],n,k,len,del;

int main(){
  cin>>k>>n;
  if (k==1){
    for (RG int i=1;i<=(n+1)>>1;++i) printf("%d ",1);
    return 0;
  }
  if (!(k&1)){
    printf("%d ",k>>1);
    for (RG int i=2;i<=n;++i) printf("%d ",k); return 0;
  }
  if (n==1) printf("%d",(k+1)>>1),exit(0);
  for (RG int i=1;i<=n;++i) a[i]=(k+1)>>1; len=n,del=n>>1;
  for (;del;--del){
    if (a[len]==1){ --len; continue; }
    for (--a[len];len!=n;++len) a[len+1]=k;
  }
  for (RG int i=1;i<=len;++i) printf("%d ",a[i]); return 0;
}
