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