#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(false);
  cin.tie(NULL);
  int n, m;
  cin >> n >> m;
  int arr[m];
  if (n % m == 0)
    for (int i = 0; i < m; i++) arr[i] = n / m;
  else {
    int nt = n, t = 0;
    while (nt % m != 0) nt--;
    for (int i = 0; i < m; i++) arr[i] = nt / m;
    t = n - nt;
    for (int i = m - t; i < m; i++) arr[i]++;
  }
  for (int i = 0; i < m; i++) cout << arr[i] << " ";
  return 0;
}
