#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int m, n;
  scanf("%d %d", &n, &m);
  int cnt = n / m;
  int rem = n % m;
  for (int i = 0; i < m - rem; i++) {
    printf("%d ", cnt);
  }
  for (int i = 0; i < rem; i++) {
    printf("%d ", cnt + 1);
  }
  return 0;
}
