#include<stdio.h>
int main()
{
	///*gg*/freopen("data.in", "r", stdin);
	int n, m, num[110] = {0};
	int i, j;
	int a, b, sum;

	for(i = 0; i < 100; i++)
	{
		num[i] = 2 * i + 2;
	}

	while(scanf("%d%d", &n, &m) != EOF)
	{
	a = n / m;
	b = n % m;

	for(i = 0; i < a; i++)
	{
		sum = 0;
		for(j = 0; j < m; j++)
		{
			sum += num[i * m + j];
		}
		printf("%d ", (sum) / (m) );
	}
	if(b % 2 == 0 && b != 0) printf("%d", num[n - b / 2] - 1);
	if(b % 2 == 1) printf("%d", num[n - b / 2 - 1]);
	printf("\n");
	}
	return 0;
}