import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import numpy as np L, R, N = map(int,read().split()) def f(x): # 0,1,2,...,x-1 q,r = divmod(x,N) counter = np.zeros(N, np.int64) counter += q counter[:r] += 1 return counter answer = f(R+1) - f(L) print('\n'.join(answer.astype(str)))