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