def main(): l, r, n = map(int, input().split()) l_rest = l % n r_rest = r % n l_set_start = l + (n - l_rest) % n r_set_end = r - r_rest loop_count = (r_set_end - l_set_start) // n for num in range(n): out_range = 0 if num == 0: print(loop_count+1) continue if num >= l_rest: out_range += 1 if num <= r_rest: out_range += 1 print(loop_count + out_range) if __name__ == "__main__": main()