#include <bits/stdc++.h>
using namespace std;
int mod = int(1e9) + 7;
void solve() {
  int n, m;
  cin >> n >> m;
  int k = n / m;
  n %= m;
  for (int i = 0; i < m; i++) {
    if (n != 0) {
      cout << k + 1 << " ";
      n -= 1;
    } else {
      cout << k << " ";
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
