#include <bits/stdc++.h>
unsigned long long int M = 1000000007;
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  vector<int> ans(m, (n / m));
  if (n % m == 0) {
    for (auto it : ans) cout << it << " ";
  } else {
    int rem = n % m;
    for (int i = 0; i < n; i++) {
      ans[i]++;
      rem--;
      if (rem == 0) break;
    }
    sort((ans).begin(), (ans).end());
    for (auto it : ans) cout << it << " ";
  }
  cout << "\n";
  return 0;
}
