Given an array of elements , perform the following operation twice:
- for all set
and output the final array.
Input Specification
The first line of input will contain .
The next line will contain space-separated integers .
Output Specification
Output each element of the array on one line, space-separated, after performing the above operation twice.
Sample Input
5
1 2 1 3 2
Sample Output
1 4 8 15 24
Explanation
Performing the operation once, the array is now:
Performing the operation again, the array is now:
Comments