You are given an array containing $$$n$$$ positive integers.
Your task is to divide the array into $$$k$$$ subarrays so that the maximum sum in a subarray is as small as possible.
The first input line has two integers $$$n$$$ and $$$k$$$.
The next line has $$$n$$$ integers $$$x_1,x_2,\dots,x_n$$$: the contents of the array.
Constraints:
Print one integer: the maximum sum in a subarray in the optimal division.
5 3 2 4 7 3 5
8