#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int x = n / m;
  vector<int> vec(m, x);
  int z = m * x;
  int q = n - z;
  for (int i = 0; i < q; i++) {
    vec[i]++;
  }
  for (int i = 0; i < m; ++i) {
    cout << vec[i] << " ";
  }
  return 0;
}
