#include <bits/stdc++.h>
using namespace std;
int a[(int)(1.5e5) + 10], sum[(int)(1.5e5) + 10];
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  int Min = INT_MAX, pos;
  sum[0] = 0;
  for (int i = 1; i <= n; i++) sum[i] = sum[i - 1] + a[i];
  for (int i = 0; i + k <= n; i++) {
    int Sum = sum[i + k] - sum[i];
    if (Sum < Min) {
      Min = Sum;
      pos = i + 1;
    }
  }
  printf("%d\n", pos);
  return 0;
}
