#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, i, a, ans;
  cin >> n >> m;
  ans = n / m;
  a = n % m;
  for (i = 0; i < m; i++) {
    if (a != 0) {
      cout << ans + 1 << " ";
      a--;
    } else
      cout << ans << " ";
  }
}
