#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[160005], n, k, c = 0, d = 1;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= k; i++) c += a[i];
  int min1 = c;
  for (int i = k + 1; i <= n; i++) {
    c -= a[i - k];
    c += a[i];
    if (c <= min1) min1 = c, d = i - k + 1;
  }
  cout << d << endl;
  return 0;
}
