Initially, you have an array of length 2, which is a=[a1,a2]. Here a1≥a2≥0.
In each step, you must choose the two largest integers ai and aj in the array, where ai≥aj, and insert two integers ai+aj and ai−aj to the array (in any positions).
Thus, you can construct an array of any even length ≥4.
Now you are given an array of even length N.
Please determine whether you can form this array by the steps. If so, then find out which is the initial array.
Constraints
The sum of N across all test cases does not exceed 107.
Input Format
Output Format
In the first case:
In the second case: