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