A, B, C = map(int,input().split()) for i in range(C): print((B - i) // C - (A - 1 - i) // C)