#C13284. Even Multiply, Odd Add

    ID: 42805 Type: Default 1000ms 256MiB

Even Multiply, Odd Add

Even Multiply, Odd Add

You are given a list of integers. The task is to transform the list in such a way that for every element at an even index (0-indexed), you multiply that element by 2, and for every element at an odd index, you add 2 to that element.

In mathematical terms, let \(a_0, a_1, \dots, a_{n-1}\) be the input list. Then the output list \(b_0, b_1, \dots, b_{n-1}\) is given by:

\(b_i = \begin{cases} 2 \times a_i, & \text{if } i \text{ is even}\\ a_i + 2, & \text{if } i \text{ is odd} \end{cases}\)

Your submitted solution should read input from standard input (stdin) and write the result to standard output (stdout).

inputFormat

The first line of input contains a non-negative integer \(n\), the number of elements in the list. If \(n > 0\), the second line contains \(n\) space-separated integers representing the list.

outputFormat

Output a single line containing the transformed list. The numbers should be output as space-separated integers. For an empty list, output nothing.

## sample
6
1 2 3 4 5 6
2 4 6 6 10 8