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