l, r, n = map(int, input().split()) ans = [0] * n if r - l < 4 * n: for i in range(l, r + 1): ans[i%n] += 1 else: up = (l + n - 1)//n * n for i in range(l, up + 1): ans[i%n] += 1 down = r//n * n for i in range(down + 1, r + 1): ans[i%n] += 1 v = (down - up) // n for i in range(n): ans[i] += v for a in ans: print(a)