#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, diff = 0, small = 0, i = 0;
  cin >> n >> m;
  diff = n % m;
  small = n / m;
  for (; i < diff; i++) cout << small + 1 << ' ';
  for (; i < m; i++) cout << small << ' ';
  return 0;
}
