l, r, n = map(int, input().split()) ln, rn = l % n, r % n t = r - l + 1 if t % n == 0: for i in range(n): print(t // n) elif ln <= rn: for i in range(n): print(t // n + int(ln <= i <= rn)) elif rn < ln: for i in range(n): print(t // n + int(i <= rn or ln <= i))