#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, K, a, b, m = 0, A[1000000], mIn = INT_MAX;
  scanf("%d", &N);
  scanf("%d", &K);
  A[0] = 0;
  for (int i = 1; i <= N; i++) {
    scanf("%d", &A[i]);
    A[i] += A[i - 1];
  }
  for (int i = K; i <= N; i++) {
    b = A[i] - A[i - K];
    if (b < mIn) {
      a = i - K + 1;
      mIn = b;
    }
  }
  printf("%d\n", a);
  return 0;
}
