At each of the n + 2 steps of the staircase, an integer is written. On the first and last steps, there is a number . A man stands on the first step. He must climb to the last step. In one move, he can ascend any number of steps not greater than .
Find the sum of all the numbers written on the steps that the man passes. Find the largest possible value of this sum.
The first line contains the number (0 \leq n \leq 1000). The second line contains integers written on the steps (except for the first and the last steps, which contain ). The integers do not exceed by absolute value and are separated by spaces. The maximum length of the man's step, (1 \leq k \leq n), is given on the third line.
Print the greatest possible sum of numbers written on the steps that the man passes.
Example 1