L,R,N=map(int,input().split()) for i in range(N): n0=(L+N-1-i)//N n1=(R+N-i)//N print(n1-n0)