You are given an array of length . There are two empty arrays, and . You have to put every element of into either or .
The score of an array is defined as the square of the sum of all of its elements. Find the minimum possible absolute difference between the score of and .
Input Format:
Output Format:
For each test case, print the minimum possible absolute difference between the score of and the score of .
Constraints:
First test case:
We can put the third element in and the other elements in .
The score of is .
The score of is .
Their absolute difference is .
It can be shown that this is the minimum possible absolute difference. Thus, the answer is .
Second test case:
We can put the first three elements in and the last two elements in .
The score of is .
The score of is .
Their absolute difference is . Thus, the answer is .