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