def main(): l, r, n = map(int, input().split()) for i in range(n): ans = (r - i) // n - (l - 1 - i) // n if i != n - 1: print(ans) else: print(ans, end="") if __name__ == "__main__": main()