#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  vector<long long> v;
  long long n, m;
  cin >> n >> m;
  for (long long i = 0; i < m; i++) {
    v.push_back(n / m);
  }
  long long ans = n % m;
  long long j = 0;
  while (ans) {
    v[j]++;
    ans--;
    j++;
  }
  sort(v.begin(), v.end());
  for (long long i = 0; i < v.size(); i++) {
    cout << v[i] << " ";
  }
}
