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