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