#include <bits/stdc++.h>
using namespace std;
vector<int> V, L;
vector<pair<char, long long>> B;
vector<string> Ans;
map<int, int> M;
set<long long> S;
set<char>::iterator it;
long long n, m, a, b, c, d, e, f, x, y, z, t, l = 100, r, ans, cnt, score;
string s, winner, temp, p;
long long arr[1001];
bool xy = 0;
char bd;
float ans1;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> a >> b;
  c = a / b;
  d = a % b;
  for (int i = 0; i < b; i++) V.push_back(c);
  for (int i = 0; i < d; i++) V[i]++;
  reverse(V.begin(), V.end());
  for (int i = 0; i < b; i++) cout << V[i] << " ";
}
