#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, m, s;
  cin >> n >> m;
  while (n) {
    cout << n / m << " ";
    s = m--;
    n -= n / s;
  }
  cout << endl;
  return 0;
}
