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

~/algor $ cat problems/massiv-ikki-barobar

Doubling the elements

Easy 1000 ms 128 MB 23%
Share

A positive integer $n$ and an array of $n$ integers are given. Multiply every element by $2$ and print the resulting array.

Multiplying every array element by two

Input

The first line contains a positive integer $n$. The second line contains $n$ integers $a_{i}$ separated by spaces.

Output

One line with $n$ integers separated by spaces.

Note

$1 \le n \le 10^{4}$
$-1000 \le a_{i} \le 1000$

Examples

Input #1
4
1 5 -3 0
Output #1
2 10 -6 0
Input #2
1
7
Output #2
14

Sign in to submit a solution

Signing up is free and takes a minute.