n, k = map(int, input().split()) ans = [n // k] * k for i in range(n % k): ans[i] += 1 print(*ans)