Given an array
consisting ofnon-negative integers.
You need to perform the following operation
times:
- Sort the array
- . Note that each time the operation is performed, the size of the array reduces by one.
Find the remaining element after
operations.
Input Format
- The first line contains an integer
- .
Output Format
For each test case, output single line: the remaining element after
operations.
Constraints
- .
Sample Input 1
2
4
29 19 0 3
1
777
Sample Output 1
1
777
Explanation
- Test case 1: The operations look like:
- Operation
- .
Thus, the remaining element after
operations is.
- Test case 2: Since
ConversionConversion EmoticonEmoticon