#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int d = n / k;
  int rem = n % k;
  for (int i = 0; i < k - rem; i++) cout << d << " ";
  for (int j = k - rem; j < k; j++) cout << d + 1 << " ";
  cout << endl;
}
