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