#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, ans;
  cin >> n >> m;
  ans = n / m;
  for (int i = (int)1; i <= (int)m - (n % m); ++i) printf("%d ", ans);
  for (int i = (int)1; i <= (int)n % m; ++i) printf("%d ", ans + 1);
  return 0;
}
