#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int x = n / m;
  int a[m + 1];
  for (int i = 1; i <= m; i++) a[i] = x;
  int y = n % m;
  for (int i = m; i > m - y; i--) a[i]++;
  for (int i = 1; i <= m; i++) cout << a[i] << " ";
}
