#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  vector<int> a(m, n / m);
  int rem = n % m, idx = 0;
  while (rem--) a[idx++]++;
  sort(a.begin(), a.end());
  for (int i = 0; i < a.size(); i++) cout << a[i] << " ";
  cout << endl;
}
