#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n >> x;
  int a[x];
  for (int i = 0; i < x; i++) a[i] = n / x;
  int b = n - (n / x) * x;
  int i = x - 1;
  while (b > 0) {
    a[i] = a[i] + 1;
    i--;
    b--;
  }
  for (i = 0; i < x; i++) cout << a[i] << " ";
}
