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