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