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