#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  vector<int> vec(m);
  int curr = 0;
  while (curr < n) {
    vec[curr % m]++;
    curr++;
  }
  for (int i = 0; i < m; ++i) printf("%d ", vec[i]);
  return 0;
}
