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