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