a, b, c = map(int, input().split()) # 輸入print(*range(a, b + (1 if c > 0 else -1), c) if c != 0 else [a]) # 判斷加輸出答案