#include <bits/stdc++.h>
using namespace std;
long long a[1000000];
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  scanf("%d", &a[0]);
  for (int i = 1; i < n; i++) {
    int t;
    scanf("%d", &t);
    a[i] = a[i - 1] + t;
  }
  int t = a[k - 1];
  int ans = 1;
  for (int i = 0; i <= n - k - 1; i++) {
    int t0 = a[i + k] - a[i];
    if (t0 < t) t = t0, ans = i + 2;
  }
  printf("%d\n", ans);
  return 0;
}
