#include<bits/stdc++.h>
using namespace std;
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) / 2;
		int now = n;
		for (int i = 1; i <= n / 2; i ++) {
			if (a[now] == 1) a[now --] = k;
			else -- a[now], now = n;
		}
		for (int i = 1; i <= now; i ++) if (a[i]) cout << a[i] << " ";
	} else {
		if (k / 2) cout << k / 2 << " ";
		for (int i = 2; i <= n; i ++) if (k) cout << k << " ";
	}
	return 0;
}