l, r, n = map(int, input().split()) ans = [] for m in range(n): print((r - m) // n - (l - 1 - m) // n)