N, K = map(int, input().split()) q, r = divmod(N, K) print(' '.join(['%d' % (q + 1)] * r + ['%d' % q] * (K - r)))