#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  int i = 0, sum = 0, minn, ans = 1;
  if (k >= n)
    cout << "1";
  else {
    while (i < k) sum += a[i++];
    minn = sum;
    while (i < n) {
      sum -= a[i - k];
      sum += a[i];
      if (minn > sum) {
        sum = minn;
        ans = i - k + 2;
      }
      i++;
    }
    cout << ans;
  }
}
