#include <bits/stdc++.h>
using namespace std;
int n, m;
int main() {
  scanf("%d %d", &n, &m);
  int mod = n % m;
  if (mod == 0) {
    printf("%d", n / m);
    for (int i = 1; i < m; i++) {
      printf(" %d", n / m);
    }
  } else {
    int toAc = n - ((n / m) * m) - 1;
    printf("%d", (n / m) + 1);
    for (int j = 1; j < m; j++) {
      printf(" %d", (n / m) + (toAc > 0));
      toAc--;
    }
  }
  printf("\n");
}
