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