#include <bits/stdc++.h>
using namespace std;
int a[1000000];
int main() {
  int t, i, n, m, sum = 0, mi, x;
  cin >> t >> n;
  for (i = 1; i <= t; i++) {
    scanf("%d", &a[i]);
    sum += a[i];
    if (i == n) mi == a[i];
    if (i >= n) {
      if (sum < mi) {
        mi = sum;
        x = i - (n - 1);
      }
      sum = sum - a[i - (n - 1)];
    }
  }
  cout << x << endl;
  return 0;
}
