#include <bits/stdc++.h>
using namespace std;
static const int INF = 500000000;
template <class T>
void debug(T a, T b) {
  for (; a != b; ++a) cerr << *a << ' ';
  cerr << endl;
}
int n, m;
int main() {
  cin >> n >> m;
  int base = n / m;
  int rema = n % m;
  for (int i = 0; i < rema; ++i) printf("%d\n", base + 1);
  for (int i = 0; i < m - rema; ++i) printf("%d\n", base);
  return 0;
}
