#include <bits/stdc++.h>
using namespace std;
int n, m, i, c[100005], a, b, v, k, t[100005];
set<int> g[100005];
vector<int> first_half;
vector<int> second_half;
vector<int> total;
int par[209], group[209];
int arra[150000];
int main() {
  long long int i, j, p, q, r, s, t, u, v, w, x, y, z, n, k;
  cin >> n >> k;
  x = n / k;
  y = x + 1;
  for (i = 1; i <= k - n % k; i++) cout << x << " ";
  for (i = 1; i <= n % k; i++) cout << y << " ";
}
