#include <bits/stdc++.h>
int main() {
  int n, m, i, a[118];
  scanf("%d%d", &n, &m);
  for (i = 0; i < m; i++)
    if (i < m - n % m)
      a[i] = n / m;
    else
      a[i] = n / m + 1;
  for (i = 0; i < m; i++)
    if (i == m)
      printf("%d\n", a[i]);
    else
      printf("%d ", a[i]);
  return 0;
}
