n, k = map(int, input().split()) for i in range(k): if i < n % k: print(str(n // k + 1), end=" ") else: print(str(n // k) , end=" ")