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

~/algor $ cat problems/massiv-ikkining-darajalari

Array of powers of two

Easy 1000 ms 128 MB 25%
Share

A positive integer $n$ is given. Build and print the array of the first $n$ integer powers of $2$ ($2^{1}, 2^{2}, \dots, 2^{n}$).

An array of powers of two

Input

One positive integer $n$.

Output

One line with $n$ integers separated by spaces.

Note

$1 \le n \le 30$

Examples

Input #1
4
Output #1
2 4 8 16
Input #2
1
Output #2
2

Sign in to submit a solution

Signing up is free and takes a minute.