And here goes another problem on arrays. You are given positive integer len and array a which consists of n integers a1, a2, ..., an. Let's introduce two characteristics for the given array.

  * Let's consider an arbitrary interval of the array with length len, starting in position i. Value <image>, is the modular sum on the chosen interval. In other words, the modular sum is the sum of integers on the chosen interval with length len, taken in its absolute value.
  * Value <image> is the optimal sum of the array. In other words, the optimal sum of an array is the maximum of all modular sums on various intervals of array with length len. 



Your task is to calculate the optimal sum of the given array a. However, before you do the calculations, you are allowed to produce no more than k consecutive operations of the following form with this array: one operation means taking an arbitrary number from array ai and multiply it by -1. In other words, no more than k times you are allowed to take an arbitrary number ai from the array and replace it with  - ai. Each number of the array is allowed to choose an arbitrary number of times.

Your task is to calculate the maximum possible optimal sum of the array after at most k operations described above are completed.

Input

The first line contains two integers n, len (1 ≤ len ≤ n ≤ 105) — the number of elements in the array and the length of the chosen subinterval of the array, correspondingly. 

The second line contains a sequence consisting of n integers a1, a2, ..., an (|ai| ≤ 109) — the original array. 

The third line contains a single integer k (0 ≤ k ≤ n) — the maximum allowed number of operations. 

All numbers in lines are separated by a single space.

Output

In a single line print the maximum possible optimal sum after no more than k acceptable operations are fulfilled. 

Please do not use the %lld specifier to read or write 64-bit integers in С++. It is preferred to use cin, cout streams or the %I64d specifier.

Examples

Input

5 3
0 -2 3 -5 1
2


Output

10


Input

5 2
1 -3 -10 4 1
3


Output

14


Input

3 3
-2 -5 4
1


Output

11
#include <bits/stdc++.h>
using namespace std;
long long int a[100005];
long long int n, len, k;
class data {
 public:
  set<pair<long long int, long long int> > mx, mn;
  long long int sum1, ksum;
  data() { ksum = 0, sum1 = 0; }
  void ins(long long int v, long long int index) {
    sum1 += v;
    ksum += v;
    mx.insert(make_pair(v, index));
    if (int((mx).size()) > k) {
      pair<long long int, long long int> p = *(mx.begin());
      mx.erase(p);
      ksum -= p.first;
      p.first = -p.first;
      mn.insert(p);
    }
  }
  void rem(long long int v, long long int index) {
    sum1 -= v;
    if (mx.count(make_pair(v, index))) {
      ksum -= v;
      mx.erase(make_pair(v, index));
      if (int((mn).size()) > 0) {
        pair<long long int, long long int> p = *(mn.begin());
        mn.erase(p);
        p.first = -p.first;
        mx.insert(p);
        ksum += p.first;
      }
    } else if (mn.count(make_pair(-v, index))) {
      mn.erase(make_pair(-v, index));
    }
  }
};
data ap, an;
void ADD(long long int v, long long int index) {
  if (v < 0)
    an.ins(-v, index);
  else
    ap.ins(v, index);
}
void REMOVE(long long int v, long long int index) {
  if (v < 0)
    an.rem(-v, index);
  else
    ap.rem(v, index);
}
int main() {
  long long int ans = 0;
  cin >> n >> len;
  for (long long int i = 0; i < n; i++) cin >> a[i];
  cin >> k;
  for (long long int i = 0; i < n; i++) {
    ADD(a[i], i);
    if (i >= len) REMOVE(a[i - len], i - len);
    if (i >= len - 1)
      ans = max(ans, max(ap.sum1 - an.sum1 + 2 * an.ksum,
                         an.sum1 + 2 * ap.ksum - ap.sum1));
  }
  cout << ans << endl;
  return 0;
}
