#include <bits/stdc++.h>
using namespace std;
int n, k;
int h[150005];
int main() {
  cin >> n >> k;
  for (int i = 0; i < n; ++i) scanf("%d", &h[i]);
  int mn = 0, mj = 0;
  int s = 0;
  int l = 0, r = 0;
  for (; r < k; ++r) s += h[r];
  mn = s;
  for (; r < n; ++r, ++l) {
    s -= h[l];
    s += h[r];
    if (s < mn) {
      mj = l + 1;
      mn = s;
    }
  }
  cout << mj + 1 << endl;
  return 0;
}
