Statement
Statement language
You are given a sequence of length . Find the maximum value of
Input
The input is given in the following format:
Each case is given in the following format:
Output
For each case, print the maximum value on its own line.
Constraints
- .
- .
- ().
- The sum of over all cases is at most .
Subtasks
Samples
Input
4
5
1 -2 3 4 -1
3
-5 -2 -7
4
0 0 0 0
4
1 2 3 4
Output
7
-2
0
10