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