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