#include <bits/stdc++.h>
using namespace std;
void DEB(istream_iterator<string> it) {}
template <typename T, typename... Args>
void DEB(istream_iterator<string> it, T a, Args... args) {
  cout << *it << " = " << a << '\n';
  DEB(++it, args...);
}
const long long N = 1e5 + 5, mod = 1e9 + 7, inf = 1e18 + 7;
long long gcd(long long x, long long y) {
  if (x == 0) return y;
  if (x > y) swap(x, y);
  return gcd(y % x, x);
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, m;
  cin >> n >> m;
  long long a = (n + m - 1) / m * m, b = a - n;
  for (long long i = 0; i < b; i++) cout << a / m - 1 << ' ';
  for (long long i = b; i < m; i++) cout << a / m << ' ';
}
