#include <bits/stdc++.h>
using namespace std;
const char space = ' ';
const long long int maxx = 1e12 + 7;
long long int n, m, k, t, i, sum, check, f;
bool fg;
int main() {
  cin >> n >> m;
  k = n / m;
  check = k * m;
  long long int a[m];
  for (long long int i = 0; i <= m - 1; i++) {
    a[i] = k;
  }
  if (check != n) {
    check = n - check;
    for (long long int i = m - 1; i >= 0; i--) {
      if (check == 0) break;
      a[i]++;
      check--;
    }
  }
  for (long long int i = 0; i <= m - 1; i++) {
    cout << a[i] << space;
  }
  cout << endl;
  return 0;
}
