#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:268435456")
using namespace std;
int a[1 << 8];
int main() {
  int n, m;
  cin >> m >> n;
  for (int i = 0; i < m; ++i) a[i % n]++;
  for (int i = 0; i < n; ++i) cout << a[i] << " ";
  cout << endl;
  return 0;
}
