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