#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0, m = 0;
  cin >> n >> m;
  int* mas = new int[m];
  for (int i = 0; i < m; i++) mas[i] = 0;
  int count = 0;
  int i = 0;
  while (count != n) {
    ++mas[i];
    ++count;
    if (i == (m - 1)) {
      i = 0;
      continue;
    }
    ++i;
  }
  for (int i = 0; i < m; i++) cout << mas[i] << " ";
  cout << endl;
}
