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