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