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