a,b,c=map(int,input().split()) for i in range(c): if c!=1: d=(b-i)//c-a//c if i==0: print(d) else: print(d+1) else: print(b-a+1)