You are given an array A of size N. You have to select any value 'x' from A and remove its all occurrences. You need to perform this operation exactly once.
You need to obtain the maximum possible final sum of A.
Input format
For each test case:
Output format
Print the maximum possible sum of A after performing the operation exactly once.
Constraints
1≤T≤10
1≤N≤105
1≤A[i]≤106
In testcase 1, x = 1. So, sum is 3. This is maximum sum that can be obtained.
In testcase 2, x = 1. So, sum is 5. This is maximum sum that can be obtained.