input_list = list(map(int,input().split())) l, r, n = input_list num_range = r - l + 1 rest_list = [0] * n if num_range >= n: i = 0 for v in range(l, l + n): rest_list[i] = v % n i += 1 else: i = 0 for v in range(l, r + 1): rest_list[i] = v % n i += 1 # print('rest_list: {}'.format(rest_list)) minimum = num_range // n # print('minimum: {}'.format(minimum)) rest = num_range % n for i in range(n): if i in rest_list[0 : rest]: print(minimum + 1) else: print(minimum)