#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, l, m, x1, x2;
  cin >> m >> k;
  x1 = m / k;
  x2 = (m + k - 1) / k;
  l = m % k;
  for (i = 1; i <= k - l; i++) cout << x1 << " ";
  for (i = 1; i <= l; i++) cout << x2 << " ";
  cout << endl;
}
