#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const int32_t M = 1e9 + 7;
const int32_t MM = 998244353;
const int N = 5e5 + 5;
template <typename T1, typename T2>
istream& operator>>(istream& in, pair<T1, T2>& a) {
  in >> a.first >> a.second;
  return in;
}
template <typename T1, typename T2>
ostream& operator<<(ostream& out, pair<T1, T2> a) {
  out << a.first << " " << a.second;
  return out;
}
template <typename T, typename T1>
T amax(T& a, T1 b) {
  if (b > a) a = b;
  return a;
}
template <typename T, typename T1>
T amin(T& a, T1 b) {
  if (b < a) a = b;
  return a;
}
void solve(void) {
  int n, m;
  cin >> n >> m;
  int x, y, i = m - 1, j;
  x = n / m;
  y = n % m;
  vector<int> friends(m, x);
  if (y != 0) {
    while (y > 0) {
      friends[i] += 1;
      i--;
      y--;
    }
  }
  for (int j = 0; j < m; j++) {
    cout << friends[j] << " ";
  }
  cout << endl;
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
  return 0;
}
