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