Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/darajalar-ketma-ketligi

Sequence of powers

Easy 1000 ms 64 MB 27%
Share

A real number $a$ and a positive integer $N$ are given. Compute all powers of $a$ from $1$ to $N$:

$$a^{1}, a^{2}, a^{3}, \dots, a^{N}$$

A chain of successive powers

Input

One line with a real number $a$ and a positive integer $N$.

Output

One line with $N$ numbers separated by spaces, each with exactly 2 digits after the decimal point (for example, 2.00 4.00 8.00 16.00).

Note

$0 \lt a \le 10$
$a$ has at most $1$ digit after the decimal point
$1 \le N \le 10$

Examples

Input #1
2 4
Output #1
2.00 4.00 8.00 16.00
Input #2
3 3
Output #2
3.00 9.00 27.00

Sign in to submit a solution

Signing up is free and takes a minute.