l, r, n = map(int, input().split()) for i in range(n): print((r + (n - i) % n) // n - ((l - 1) + (n - i) % n) // n)