Given an array with elements, what is the -th largest sub array sum. (A subarray sum is the sum of all elements within a continuous section of the array).
Input
The first line contain integers and . The second line contains integers , the elements of the array.
Output
Output the -th largest subarray sum.
Constraints
Example 1
Input
10 1
7 7 4 6 3 8 9 8 5 1
Output
58
Example 2
Input
3 4
8 10 4
Output
10
Example 3
Input
5 6
3 6 9 8 4
Output
18
Comments