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