#include <bits/stdc++.h>
using namespace std;
void helper(int n, int m) {
  if (n % m == 0) {
    for (int i = 0; i < n / m; ++i) {
      cout << m << " ";
    }
  } else {
    int k = ceil((double)n / m);
    int v = 0;
    for (int i = 1; i < m; ++i) {
      if ((n - k * i) % (k - 1) == 0 && (n - k * i) / (k - 1) == m - i) {
        v = i;
        helper(n - k * i, k - 1);
      }
    }
    for (int i = 0; i < v; ++i) {
      cout << k << " ";
    }
  }
}
void solve() {
  int n, m;
  cin >> n >> m;
  if (n % m == 0) {
    for (int i = 0; i < m; ++i) {
      cout << n / m << " ";
    }
    return;
  }
  helper(n, m);
}
int main(int argc, char* argv[]) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  solve();
  return 0;
}
