def main(): # 讀取輸入 a1, an, d = map(int, input().split()) # 生成並輸出等差數列 for i in range(a1, an + d, d): print(i, end=' ') if __name__ == "__main__": main()