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