#include <bits/stdc++.h>
using namespace std;
int n, k, t, i, a[10001], l;
int main() {
  cin >> n >> k;
  t = n / k;
  for (i = 1; i <= k; i++) a[i] = t, n -= t;
  while (n > 0) a[++l]++, n--;
  for (i = k; i >= 1; i--) cout << a[i] << " ";
  return 0;
}
