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