#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int a[m];
  int eq, diff;
  eq = n / m;
  diff = m - (n - (m * eq));
  for (int i = 0; i < m; i++) {
    if (i < diff) {
      a[i] = eq;
    } else {
      a[i] = eq + 1;
    }
  }
  for (int i = 0; i < m; i++) {
    cout << a[i] << " ";
  }
  cout << endl;
  return 0;
}
