#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, p, r;
  cin >> n >> m;
  r = n % m;
  for (i = 0; i < m - r; i++) {
    cout << n / m << " ";
  }
  for (i = 0; i < r; i++) cout << n / m + 1 << " ";
  return 0;
}
