#include <bits/stdc++.h>
using namespace std;
int main() {
  int candies, friends;
  cin >> candies >> friends;
  int high = candies % friends;
  int div = candies / friends;
  int i;
  for (i = 0; i < friends - high; ++i) {
    cout << div << " ";
  }
  for (; i < friends; ++i) {
    cout << (div) + 1 << " ";
  }
  return 0;
}
