#include <bits/stdc++.h>
int main() {
  int n, k, sum = 0, x = 1, min;
  int a[200000];
  scanf("%d %d", &n, &k);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  for (int i = 1; i <= k; i++) {
    sum = sum + a[i];
  }
  min = sum;
  for (int i = k + 1; i <= n; i++) {
    sum = sum + a[i] - a[i - k];
    if (sum < min) {
      min = sum;
      x = i - k + 1;
    }
  }
  printf("%d\n", x);
  return 0;
}
