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