Problem: You are given two arrays: an array consisting of zeros and an array consisting of integers.
You can apply the following operation to the array an arbitrary number of times: choose some subsegment of of length and add the arithmetic progression to this subsegment — i. e. add to the first element of the subsegment, to the second element, and so on. The chosen subsegment should be inside the borders of the array (i.e., if the left border of the chosen subsegment is , then the condition should be satisfied). Note that the progression added is always but not the or anything else (i.e., the leftmost element of the subsegment always increases by , the second element always increases by and so on).
Your task is to find the minimum possible number of operations required to satisfy the condition for each from to . Note that the condition should be satisfied for all elements at once.
Input Format: The first line of the input contains two integers and () — the number of elements in both arrays and the length of the subsegment, respectively.
The second line of the input contains integers (), where is the -th element of the array .
Output Format: Print one integer — the minimum possible number of operations required to satisfy the condition for each from to .
Note: Consider the first example. In this test, we don't really have any choice, so we need to add at least five progressions to make the first element equals . The array becomes .
Consider the second example. In this test, let's add one progression on the segment and two progressions on the segment . Then, the array becomes .