Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/array/terms-of-an-arithmetic-progression

Terms of an arithmetic progression

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 128 MB 25%
Share

A positive integer , the first term and the common difference are given. Build and print the array of the first terms of the arithmetic progression:

An array of the terms of an arithmetic progression

Input

One line with three integers: , and .

Output

One line with integers separated by spaces.

Note


Examples

Input #1
5 3 4
Output #1
3 7 11 15 19
Input #2
4 10 -2
Output #2
10 8 6 4

Sign in to submit a solution

Signing up is free and takes a minute.