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