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