#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  scanf("%d%d", &m, &n);
  vector<int> a(n, 0);
  for (int i = 0; m > 0; i = (i + 1) % n) {
    a[i]++;
    m--;
  }
  for (int i = 0; i < n; i++) printf("%d ", a[i]);
  return 0;
}
