#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[n + 1];
  a[0] = 0;
  int min_val = INT_MAX, index, v, s = 0;
  for (int i = 1; i <= n; i++) {
    cin >> v;
    s += v;
    a[i] = s;
  }
  for (int i = 1; i <= n - k + 1; i++) {
    if (a[i + k - 1] - a[i - 1] < min_val) {
      min_val = (a[i + k - 1] - a[i - 1]);
      index = i;
    }
  }
  cout << index << endl;
}
