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