#include <bits/stdc++.h>
using namespace std;
int a[1000000];
int main() {
  int k, n, h, i, Min, mi = 0;
  cin >> n >> k;
  cin >> a[0];
  for (i = 1; i < n; i++) {
    cin >> h;
    a[i] = a[i - 1] + h;
  }
  Min = INT_MAX;
  for (i = 0; i <= n - k; i++) {
    if (a[i + k - 1] - a[i - 1] < Min) {
      mi = i;
      Min = a[i + k - 1] - a[i - 1];
    }
  }
  cout << mi + 1 << endl;
  return 0;
}
