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