l, r, n = map(int, input().split()) ans = [0]*n while l <= r and l % n != 0: ans[(l % n)] += 1 l = l + 1 bias = (r - l) // n l = l + bias * n while l <= r: ans[(l % n)] += 1 l = l + 1 for x in ans: print(x+bias)