N, K = map(int, input().split()) A = [N // K] * K for i in range(N % K): A[i] += 1 print(*A)