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