#include <bits/stdc++.h>
using namespace std;
long long n, m;
long long a[1000];
int main() {
  cin >> n >> m;
  for (int i = 1; i <= m; ++i) a[i] = 0;
  long long f = 0;
  long long p = 0;
  while (true) {
    if (f == 1) break;
    if (p == n) break;
    for (int i = 1; i <= m; ++i) {
      ++p;
      ++a[i];
      if (p == n) {
        f = 1;
        break;
      }
    }
  }
  for (int i = 1; i <= m; ++i) cout << a[i] << ' ';
  return 0;
}
