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