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