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