#include<cstdio>
#include<algorithm>
#include<iostream>
#include<cstring>
using namespace std;
const int N=300005;
int n,k;
int a[N];
int main()
{
	scanf("%d%d",&k,&n);	
	if (k&1)
	{
		for (int u=1;u<=n;u++) a[u]=k/2+1;
		int t=n/2;
		int now=n;
		while (t--)
		{
			if (a[now]==1) now--;
			else
			{
				a[now]--;
				while (now<n)	a[++now]=k;
			}
		}
		for (int u=1;u<=now;u++) printf("%d ",a[u]);
	}
	else
	{
		printf("%d ",k/2);for (int u=2;u<=n;u++) printf("%d ",k);
	}
	return 0;
}