#include <bits/stdc++.h>
using namespace std;
const int maz = 1000000000;
int main() {
  long long int n, m, t = 0;
  cin >> n >> m;
  int r = m;
  for (int i = 1; i <= maz; i++) {
    if (n % m == 0) {
      int b = n / m;
      cout << b << " ";
      t++;
      if (t == r) break;
    } else {
      int a = n / m;
      n = n - a;
      if (i == r) {
        cout << n << " ";
        m--;
        t++;
        if (t == r) break;
      } else {
        cout << a << " ";
        m--;
        t++;
        if (t == r) break;
      }
    }
  }
  return 0;
}
