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