#include <bits/stdc++.h>
using namespace std;
int A[150005];
int Min(int a, int b) { return a < b ? a : b; }
int main() {
  int t, n, k, i, ans = 1e9, sum = 0, p;
  scanf("%d%d", &n, &k);
  for (i = 0; i < n; i++) {
    scanf("%d", &A[i]);
    sum += A[i];
    if (i == k - 1) {
      ans = sum;
      p = i - k + 2;
      continue;
    }
    if (i >= k) {
      sum -= A[i - k];
      if (ans > sum) {
        ans = sum;
        p = i - k + 2;
      }
    }
  }
  printf("%d\n", p);
  return 0;
}
