Takahashi has N panels arranged in a row in his house, numbered from 1 to N. Each panel (i) has a number (A_i) written on it. Takahashi throws balls at these panels a total of (K) times.
For each throw (i), if a ball hits panel (p_i), the score for that throw is calculated as:
[ \text{score} = i \times A_{p_i} ]
Unfortunately, Takahashi forgot the sequence of panels (p_1, p_2, \ldots, p_K) that were hit. However, he remembers a key rule about the throws: for every (i) (where (1 \leq i < K)), the condition (1 \leq p_{i+1} - p_i \leq M) holds true.
Your task is to determine the maximum possible total score for his throws given the constraints.
Input Format
The first line of input contains three integers (N), (K), and (M):
(N) (1 ≤ N ≤ 100,000): The number of panels.
(K) (1 ≤ K ≤ N): The number of throws.
(M) (1 ≤ M ≤ N): The maximum distance between consecutive panels hit.
The second line contains (N) integers (A_1, A_2, \ldots, A_N) (1 ≤ A_i ≤ 1,000,000): The numbers written on the panels.
Output Format
Output a single integer: the maximum possible total score for the (K) throws.
Example
Input
text
5 3 2
4 2 3 5 1
Output
text
34
Explanation
In this example, the panels hit could be (p_1 = 3), (p_2 = 4), (p_3 = 5). The scores would be: