#include <bits/stdc++.h>
using namespace std;
int n, m, i;
int main() {
  cin >> n >> m;
  int rest = n % m;
  rest = m - rest;
  int div = n / m;
  for (i = 0; i < m; i++) {
    if (i < rest)
      cout << div << " ";
    else
      cout << div + 1 << " ";
  }
  cout << endl;
  return 0;
}
