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