l, r, n = map(int, input().split()) m = r // n a = r % n for i in range(n): print(m + [0, 1][i % n == a] - (max(0,l + i) // n))