#include <bits/stdc++.h>
using namespace std;
int x, n, m, z, c, k, y, g, h, sum, ans;
int main() {
  int n, m;
  cin >> n >> m;
  if (n % m == 0) {
    for (int i = 0; i < m; i++) {
      cout << n / m << " ";
    }
  } else {
    ans = n % m;
    for (int i = 0; i < m - ans; i++) {
      cout << n / m << " ";
    }
    for (int i = 0; i < ans; i++) {
      cout << (n / m) + 1 << " ";
    }
  }
  return 0;
}
