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