Problem: Another Codeforces Round has just finished! It has gathered participants, and according to the results, the expected rating change of participant is . These rating changes are perfectly balanced — their sum is equal to .
Unfortunately, due to minor technical glitches, the round is declared semi-rated. It means that all rating changes must be divided by two.
There are two conditions though:
- For each participant , their modified rating change must be integer, and as close to as possible. It means that either or . In particular, if is even, . Here denotes rounding down to the largest integer not greater than , and denotes rounding up to the smallest integer not smaller than .
- The modified rating changes must be perfectly balanced — their sum must be equal to .
Can you help with that?
Input Format: The first line contains a single integer (), denoting the number of participants.
Each of the next lines contains a single integer (), denoting the rating change of the -th participant.
The sum of all is equal to .
Output Format: Output integers , each denoting the modified rating change of the -th participant in order of input.
For any , it must be true that either or . The sum of all must be equal to .
If there are multiple solutions, print any. We can show that a solution exists for any valid input.
Note: In the first example, , and is another correct solution.
In the second example there are possible solutions, one of them is shown in the example output.