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

~/algor $ cat problems/array/terms-of-a-geometric-progression

Terms of a geometric progression

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

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

An array of the terms of a geometric progression

Input

One line with three integers: , and .

Output

One line with integers separated by spaces.

Note



Examples

Input #1
4 3 2
Output #1
3 6 12 24
Input #2
3 5 3
Output #2
5 15 45

Sign in to submit a solution

Signing up is free and takes a minute.