import numpy as np l, r, n = map(int, input().split()) start = l % n total = r - l + 1 left, b = total % n, total // n ans_list = np.ones(n, dtype=np.int64) * b ans_list[[i % n for i in range(start, start+left)]] += 1 for ans in ans_list: print(ans)