#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M, p;
  cin >> N >> M;
  p = N - (M * (N / M));
  for (int i = 0; i < M - p; i++) cout << N / M << " ";
  for (int j = 0; j < p; j++) cout << N / M + 1 << " ";
}
