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