#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  vector<int> res;
  cin >> n >> m;
  while (m) {
    res.push_back(n / m);
    n -= n / m;
    m--;
  }
  for (int i = 0; i < res.size(); i++) cout << res[i] << " ";
  return 0;
}
