a,b,c=map(int,input().split()) for i in range(c):print((b-i)//c-(a-1-i)//c)