l, r, n = map(int, input().split()) def calc(r, n, mod): if r == 0: return 0 c = r // n if 0 < mod <= r % n: c += 1 return c def calc1(l, r, n, mod): return calc(r, n, mod) - calc(l - 1, n, mod) for i in range(n): print(calc1(l, r, n, i))